Interface: ShaderWithResourcesDescriptor

ShaderWithResourcesDescriptor

A descriptor for a shader with resources. This is an easier way to work with uniforms. especially when you are not working with bind groups

Properties:
Name Type Description
resources Record<string, any>

A key value of uniform resources used by the shader. Under the hood pixi will look at the provided shaders and figure out where the resources are mapped. Its up to you to make sure the resource key matches the uniform name in the webGPU program. WebGL is a little more forgiving!

Extends

Members

resources Record<string, any>

A key value of uniform resources used by the shader. Under the hood pixi will look at the provided shaders and figure out where the resources are mapped. Its up to you to make sure the resource key matches the uniform name in the webGPU program. WebGL is a little more forgiving!