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 | SpriteFrame | RenderTexture | GFXTexture | null

PassOverrides

PassOverrides: RecursivePartial<IPassStates>

Variables

Let _dsLayout

_dsLayout: GFXDescriptorSetLayout | null = null

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 effects

effects: Record<string, EffectAsset>

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: GFXType): number

dependencyCheck

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

Const genHandle

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

genHandles

getActiveAttributes

Const getBindingFromHandle

  • getBindingFromHandle(handle: number): number

getBitCount

  • getBitCount(cnt: number): number

getDefaultFromType

  • getDefaultFromType(type: GFXType): ReadonlyArray<number> | "default-texture" | "default-cube-texture"

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

serializeDynamicState

serializeRasterizerState

Object literals

Const bufferInfo

bufferInfo: object

memUsage

memUsage: number = GFXMemoryUsageBit.HOST | GFXMemoryUsageBit.DEVICE

size

size: number = 0

usage

usage: UNIFORM = GFXBufferUsageBit.UNIFORM

Const bufferViewInfo

bufferViewInfo: object

buffer

buffer: never = null!

offset

offset: number = 0

range

range: number = 0

Const dsInfo

dsInfo: object

layout

layout: never = null!

Const type2reader

type2reader: object

GFXTypeFLOAT2

  • GFXTypeFLOAT2(a: Float32Array, v: any, idx?: number): any

GFXTypeFLOAT3

  • GFXTypeFLOAT3(a: Float32Array, v: any, idx?: number): any

GFXTypeFLOAT4

  • GFXTypeFLOAT4(a: Float32Array, v: any, idx?: number): any

GFXTypeFLOAT

  • GFXTypeFLOAT(a: Float32Array, v: any, idx?: number): number

GFXTypeINT2

  • GFXTypeINT2(a: Float32Array, v: any, idx?: number): any

GFXTypeINT3

  • GFXTypeINT3(a: Float32Array, v: any, idx?: number): any

GFXTypeINT4

  • GFXTypeINT4(a: Float32Array, v: any, idx?: number): any

GFXTypeINT

  • GFXTypeINT(a: Float32Array, v: any, idx?: number): number

GFXTypeMAT3

  • GFXTypeMAT3(a: Float32Array, v: any, idx?: number): any

GFXTypeMAT4

  • GFXTypeMAT4(a: Float32Array, v: any, idx?: number): any

GFXTypeUNKNOWN

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

Const type2writer

type2writer: object

GFXTypeFLOAT2

  • GFXTypeFLOAT2(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeFLOAT3

  • GFXTypeFLOAT3(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeFLOAT4

  • GFXTypeFLOAT4(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeFLOAT

  • GFXTypeFLOAT(a: Float32Array, v: any, idx?: number): any

GFXTypeINT2

  • GFXTypeINT2(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeINT3

  • GFXTypeINT3(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeINT4

  • GFXTypeINT4(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeINT

  • GFXTypeINT(a: Float32Array, v: any, idx?: number): any

GFXTypeMAT3

  • GFXTypeMAT3(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeMAT4

  • GFXTypeMAT4(a: Float32Array, v: any, idx?: number): Float32Array

GFXTypeUNKNOWN

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

Generated using TypeDoc