Table of Contents

Class WebGPUShaderUniformBuilder

Namespace
SixLabors.ImageSharp.Drawing.Processing.Backends
Assembly
SixLabors.ImageSharp.Drawing.WebGPU.dll

Builds a set of named values for a WebGPUShaderUniformLayout.

public sealed class WebGPUShaderUniformBuilder
Inheritance
WebGPUShaderUniformBuilder
Inherited Members

Methods

SetFloat32(string, float)

Sets a named 32-bit floating-point value.

public void SetFloat32(string name, float value)

Parameters

name string

The declared member name.

value float

The value to set.

SetFloat32Array(string, ReadOnlySpan<float>)

Sets a named fixed-size array of 32-bit floating-point values.

public void SetFloat32Array(string name, ReadOnlySpan<float> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<float>

The values to set.

SetInt32(string, int)

Sets a named signed 32-bit integer value.

public void SetInt32(string name, int value)

Parameters

name string

The declared member name.

value int

The value to set.

SetInt32Array(string, ReadOnlySpan<int>)

Sets a named fixed-size array of signed 32-bit integer values.

public void SetInt32Array(string name, ReadOnlySpan<int> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<int>

The values to set.

SetMatrix4x4(string, Matrix4x4)

Sets a named four-by-four floating-point matrix.

public void SetMatrix4x4(string name, Matrix4x4 value)

Parameters

name string

The declared member name.

value Matrix4x4

The value to set.

SetMatrix4x4Array(string, ReadOnlySpan<Matrix4x4>)

Sets a named fixed-size array of four-by-four floating-point matrices.

public void SetMatrix4x4Array(string name, ReadOnlySpan<Matrix4x4> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<Matrix4x4>

The values to set.

SetUInt32(string, uint)

Sets a named unsigned 32-bit integer value.

public void SetUInt32(string name, uint value)

Parameters

name string

The declared member name.

value uint

The value to set.

SetUInt32Array(string, ReadOnlySpan<uint>)

Sets a named fixed-size array of unsigned 32-bit integer values.

public void SetUInt32Array(string name, ReadOnlySpan<uint> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<uint>

The values to set.

SetVector2(string, Vector2)

Sets a named two-component floating-point vector.

public void SetVector2(string name, Vector2 value)

Parameters

name string

The declared member name.

value Vector2

The value to set.

SetVector2Array(string, ReadOnlySpan<Vector2>)

Sets a named fixed-size array of two-component floating-point vectors.

public void SetVector2Array(string name, ReadOnlySpan<Vector2> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<Vector2>

The values to set.

SetVector3(string, Vector3)

Sets a named three-component floating-point vector.

public void SetVector3(string name, Vector3 value)

Parameters

name string

The declared member name.

value Vector3

The value to set.

SetVector3Array(string, ReadOnlySpan<Vector3>)

Sets a named fixed-size array of three-component floating-point vectors.

public void SetVector3Array(string name, ReadOnlySpan<Vector3> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<Vector3>

The values to set.

SetVector4(string, Vector4)

Sets a named four-component floating-point vector.

public void SetVector4(string name, Vector4 value)

Parameters

name string

The declared member name.

value Vector4

The value to set.

SetVector4Array(string, ReadOnlySpan<Vector4>)

Sets a named fixed-size array of four-component floating-point vectors.

public void SetVector4Array(string name, ReadOnlySpan<Vector4> values)

Parameters

name string

The declared member name.

values ReadOnlySpan<Vector4>

The values to set.