Options
All
  • Public
  • Public/Protected
  • All
Menu

Module material

Index

Type aliases

MacroRecord

MacroRecord: Record<string, number | boolean | string>
en

Combination of preprocess macros

zh

预处理宏组合

MaterialProperty

MaterialProperty: number | Vec2 | Vec3 | Vec4 | Color | Mat3 | Mat4 | Quat
en

Vector type uniforms

zh

向量类型 uniform

MaterialPropertyFull

MaterialPropertyFull: MaterialProperty | TextureBase | RenderTexture | Texture | null

PassOverrides

PassOverrides: RecursivePartial<IPassStates>

Variables

Const _bufferInfo

_bufferInfo: BufferInfo = new BufferInfo(BufferUsageBit.UNIFORM | BufferUsageBit.TRANSFER_DST,MemoryUsageBit.HOST | MemoryUsageBit.DEVICE,)

Const _bufferViewInfo

_bufferViewInfo: BufferViewInfo = new BufferViewInfo(null!)

Const _dsInfo

_dsInfo: DescriptorSetInfo = new DescriptorSetInfo(null!)

Const _dsLayoutInfo

_dsLayoutInfo: DescriptorSetLayoutInfo = new DescriptorSetLayoutInfo()

Const bindingMask

bindingMask: 1032192 = 1032192

Const defaultValues

defaultValues: ReadonlyArray<number>[] = [Object.freeze([0]),Object.freeze([0, 0]),Object.freeze([0, 0, 0, 0]),Object.freeze([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]),]

Const dtMask

dtMask: 4026531840 = 4026531840

Const offsetMask

offsetMask: 16383 = 16383

Const programLib

programLib: ProgramLib = new ProgramLib()

Const setMask

setMask: 3145728 = 3145728

Const typeMask

typeMask: 264241152 = 264241152

Functions

Const customizeType

  • customizeType(handle: number, type: Type): number

dependencyCheck

  • dependencyCheck(dependencies: string[], defines: MacroRecord): boolean

Const genHandle

  • genHandle(pt: PropertyType, set: number, binding: number, type: Type, offset?: number): number

genHandles

getActiveAttributes

Const getBindingFromHandle

  • getBindingFromHandle(handle: number): number

getBitCount

  • getBitCount(cnt: number): number

getDefaultFromType

  • getDefaultFromType(type: Type): keyof number[] | string

getDeviceShaderVersion

  • getDeviceShaderVersion(device: Device): "glsl1" | "glsl3" | "glsl4"

Const getOffsetFromHandle

  • getOffsetFromHandle(handle: number): number

Const getPropertyTypeFromHandle

  • getPropertyTypeFromHandle(handle: number): number

Const getSetIndexFromHandle

  • getSetIndexFromHandle(handle: number): number

getShaderInstanceName

  • getShaderInstanceName(name: string, macros: IMacroInfo[]): string

getSize

Const getTypeFromHandle

  • getTypeFromHandle(handle: number): number

insertBuiltinBindings

mapDefine

  • mapDefine(info: IDefineInfo, def: number | string | boolean): string

overrideMacros

prepareDefines

serializeBlendState

serializeDepthStencilState

serializeRasterizerState

Object literals

Const type2reader

type2reader: object

TypeFLOAT2

TypeFLOAT3

TypeFLOAT4

TypeFLOAT

  • TypeFLOAT(a: Float32Array, v: number, idx?: number): number

TypeINT2

TypeINT3

TypeINT4

TypeINT

  • TypeINT(a: Float32Array, v: number, idx?: number): number

TypeMAT3

TypeMAT4

TypeUNKNOWN

  • TypeUNKNOWN(a: Float32Array, v: number, idx?: number): void

Const type2writer

type2writer: object

TypeFLOAT2

  • TypeFLOAT2(a: Float32Array, v: IVec2Like, idx?: number): Float32Array

TypeFLOAT3

  • TypeFLOAT3(a: Float32Array, v: IVec3Like, idx?: number): Float32Array

TypeFLOAT4

  • TypeFLOAT4(a: Float32Array, v: IVec4Like, idx?: number): Float32Array

TypeFLOAT

  • TypeFLOAT(a: Float32Array, v: number, idx?: number): number

TypeINT2

  • TypeINT2(a: Float32Array, v: IVec2Like, idx?: number): Float32Array

TypeINT3

  • TypeINT3(a: Float32Array, v: IVec3Like, idx?: number): Float32Array

TypeINT4

  • TypeINT4(a: Float32Array, v: IVec4Like, idx?: number): Float32Array

TypeINT

  • TypeINT(a: Float32Array, v: number, idx?: number): number

TypeMAT3

  • TypeMAT3(a: Float32Array, v: IMat3Like, idx?: number): Float32Array

TypeMAT4

  • TypeMAT4(a: Float32Array, v: IMat4Like, idx?: number): Float32Array

TypeUNKNOWN

  • TypeUNKNOWN(a: Float32Array, v: number, idx?: number): void

Generated using TypeDoc