Table of Contents

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

name string

The WGSL member name used to access the value.

type WebGPUShaderUniformType

The value type.

elementCount int

The 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

int

Name

Gets the WGSL member name used to access the value.

public string Name { get; }

Property Value

string

Type

Gets the value type.

public WebGPUShaderUniformType Type { get; }

Property Value

WebGPUShaderUniformType