着色器数据

层级 (查看层级一览)

属性

changeMark: number = 0
globalId: number
instShaderData: WebGPUShaderData
objectName: string = 'WebGPUShaderData'
skinShaderData: WebGPUShaderData[]
stateKey: string = ''

访问器

方法

  • 创建绑定组项

    返回 (
        | {
            binding: number;
            buffer: GPUBufferBindingLayout;
            sampler?: undefined;
            texture?: undefined;
            visibility: number;
        }
        | {
            binding: number;
            buffer?: undefined;
            sampler?: undefined;
            texture: GPUTextureBindingLayout;
            visibility: number;
        }
        | {
            binding: number;
            buffer?: undefined;
            sampler: GPUSamplerBindingLayout;
            texture?: undefined;
            visibility: number;
        }
    )[]