Struct WebGPUShaderUniform
- Namespace
- SixLabors.ImageSharp.Drawing.Processing.Backends
- Assembly
- SixLabors.ImageSharp.Drawing.WebGPU.dll
Describes one named value or fixed-size array supplied to a WebGPU layer-effect shader.
public readonly struct WebGPUShaderUniform
- Inherited Members
Constructors
WebGPUShaderUniform(string, WebGPUShaderUniformType, int)
Initializes a new instance of the WebGPUShaderUniform struct.
public WebGPUShaderUniform(string name, WebGPUShaderUniformType type, int elementCount)
Parameters
namestringThe WGSL member name used to access the value.
typeWebGPUShaderUniformTypeThe value type.
elementCountintThe fixed number of elements. Use one for a scalar, vector, or matrix value.
Properties
ElementCount
Gets the fixed number of elements.
public int ElementCount { get; }
Property Value
Name
Gets the WGSL member name used to access the value.
public string Name { get; }
Property Value
Type
Gets the value type.
public WebGPUShaderUniformType Type { get; }