跳到主要内容

MaterialPropTypeDesc

Ploy3D • Docs


Ploy3D / MaterialPropTypeDesc

Interface: MaterialPropTypeDesc

材质属性类型描述。

Properties​

default_​

readonly default_: number[]

默认值。


format​

readonly format: PropFormat

格式枚举。


signGLSL​

readonly signGLSL: string

GLSL签名。


signWGSL​

readonly signWGSL: string

WGSL签名。


size​

readonly size: number

字节大小。


texture_dim?​

readonly optional texture_dim: GPUTextureViewDimension

贴图纬度(贴图属性特有)。


texture_type?​

readonly optional texture_type: GPUTextureSampleType

贴图像素类型(贴图属性特有)。


type​

readonly type: PropType

类型枚举。