Skip to main content

Struct WgpuShaderModuleDescriptor

Namespace: VelloSharp
Assembly: VelloSharp.Gpu.dll

public readonly struct WgpuShaderModuleDescriptor

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

WgpuShaderModuleDescriptor(string, string?)

public WgpuShaderModuleDescriptor(string wgsl, string? label = null)

Parameters

wgsl string

label string?

WgpuShaderModuleDescriptor(ReadOnlyMemory<uint>, string?)

public WgpuShaderModuleDescriptor(ReadOnlyMemory<uint> spirv, string? label = null)

Parameters

spirv ReadOnlyMemory<uint>

label string?

Properties

Label

public string? Label { get; }

Property Value

string?

Source

public WgpuShaderModuleSourceKind Source { get; }

Property Value

WgpuShaderModuleSourceKind

Spirv

public ReadOnlyMemory<uint> Spirv { get; }

Property Value

ReadOnlyMemory<uint>

Wgsl

public string? Wgsl { get; }

Property Value

string?