Class WGPUGraphicsPipelineState
This class represents a native pipelineState on WebGPU.
Namespace: Evergine.WebGPU
Assembly: Evergine.WebGPU.dll
Syntax
public class WGPUGraphicsPipelineState : GraphicsPipelineState
Constructors
WGPUGraphicsPipelineState(WGPUGraphicsContext, ref GraphicsPipelineDescription)
Initializes a new instance of the WGPUGraphicsPipelineState class.
Declaration
public WGPUGraphicsPipelineState(WGPUGraphicsContext context, ref GraphicsPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
WGPUGraphicsContext | context | The graphics context. |
GraphicsPipelineDescription | description | The graphics pipeline state description. |
Properties
IsPipelineStateInitialized
Gets a value indicating whether the pipelineState is initialized.
Declaration
public bool IsPipelineStateInitialized { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Gets or sets a string identifying this instance. It can be used in graphics debugger tools.
Declaration
public override string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
Apply(WGPUCommandBuffer)
Apply only changes compare with the previous pipelineState.
Declaration
public void Apply(WGPUCommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
WGPUCommandBuffer | commandBuffer | The commandBuffer where apply this pipeline. |
Dispose()
Performs tasks defined by the application associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()