Class ValidationLayer
The graphics validation layer.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public class ValidationLayer
Constructors
ValidationLayer(NotifyAction)
Initializes a new instance of the Validation
Declaration
public ValidationLayer(ValidationLayer.NotifyAction function)
Parameters
Type | Name | Description |
---|---|---|
Validation |
function | The callback function called for every detected error. |
ValidationLayer(NotifyMethod)
Initializes a new instance of the Validation
Declaration
public ValidationLayer(ValidationLayer.NotifyMethod method = NotifyMethod.Exceptions)
Parameters
Type | Name | Description |
---|---|---|
Validation |
method | The notification method Validation |
Fields
Notify
Pointer to the Notify function.
Declaration
public ValidationLayer.NotifyAction Notify
Field Value
Type | Description |
---|---|
Validation |
Methods
CopyBufferDataTo(bool, uint)
Validates the copy buffer operation.
Declaration
public void CopyBufferDataTo(bool inRenderPass, uint sizeInBytes)
Parameters
Type | Name | Description |
---|---|---|
bool | inRenderPass | Indicates whether the operation is made inside a render pass. |
uint | sizeInBytes | The size of the buffer in bytes. |
CopyTextureDataTo(bool)
Validates the copy texture data operation.
Declaration
public void CopyTextureDataTo(bool inRenderPass)
Parameters
Type | Name | Description |
---|---|---|
bool | inRenderPass | Indicates if the operation is made inside a render pass. |
CreateBufferValidation(nint, ref BufferDescription)
Creates the buffer validation layer.
Declaration
public void CreateBufferValidation(nint data, ref BufferDescription description)
Parameters
Type | Name | Description |
---|---|---|
nint | data | The buffer's data. |
Buffer |
description | The buffer's description. |
CreateCommandQueueValidation(CommandQueueType)
Creates a command queue validation layer.
Declaration
public void CreateCommandQueueValidation(CommandQueueType queueType)
Parameters
Type | Name | Description |
---|---|---|
Command |
queueType | The type of queue. |
CreateComputePipelineValidation(ref ComputePipelineDescription)
Creates a compute pipeline validation layer.
Declaration
public void CreateComputePipelineValidation(ref ComputePipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Compute |
description | The compute pipeline's description. |
CreateFrameBufferValidation(FrameBufferAttachment?, FrameBufferAttachment[], bool)
Creates a frame buffer validation.
Declaration
public void CreateFrameBufferValidation(FrameBufferAttachment? depthTarget, FrameBufferAttachment[] colorTargets, bool disposeAttachments)
Parameters
Type | Name | Description |
---|---|---|
Frame |
depthTarget | The depth frame buffer. |
Frame |
colorTargets | The color frame buffers. |
bool | disposeAttachments | Whether the attachments should be disposed. |
CreateGraphicsPipelineValidation(ref GraphicsPipelineDescription)
Creates a graphics pipeline validation.
Declaration
public void CreateGraphicsPipelineValidation(ref GraphicsPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Graphics |
description | The graphics pipeline description. |
CreateRaytracingPipelineValidation(ref RaytracingPipelineDescription)
Creates a ray tracing pipeline validation layer.
Declaration
public void CreateRaytracingPipelineValidation(ref RaytracingPipelineDescription description)
Parameters
Type | Name | Description |
---|---|---|
Raytracing |
description | The ray tracing pipeline description. |
CreateResourceLayoutValidation(ref ResourceLayoutDescription)
Creates a resource layout validation.
Declaration
public void CreateResourceLayoutValidation(ref ResourceLayoutDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The resource layout description. |
CreateResourceSetValidation(ref ResourceSetDescription)
Creates the resource set validation.
Declaration
public void CreateResourceSetValidation(ref ResourceSetDescription description)
Parameters
Type | Name | Description |
---|---|---|
Resource |
description | The resource set description. |
CreateSamplerStateValidation(ref SamplerStateDescription)
Creates the sampler state validation layer.
Declaration
public void CreateSamplerStateValidation(ref SamplerStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
Sampler |
description | The description of the sampler state. |
CreateShaderValidation(ref ShaderDescription)
Creates a shader validation layer.
Declaration
public void CreateShaderValidation(ref ShaderDescription description)
Parameters
Type | Name | Description |
---|---|---|
Shader |
description | The shader's description. |
CreateTextureValidation(DataBox[], ref TextureDescription, ref SamplerStateDescription)
Creates a texture validation layer.
Declaration
public void CreateTextureValidation(DataBox[] data, ref TextureDescription description, ref SamplerStateDescription samplerState)
Parameters
Type | Name | Description |
---|---|---|
Data |
data | The texture data. |
Texture |
description | The texture description. |
Sampler |
samplerState | The texture sampler state. |
SetGraphicsPipelineState(bool)
Validates CommandBuffer.SetGraphicsPipelineState.
Declaration
public void SetGraphicsPipelineState(bool inRenderPass)
Parameters
Type | Name | Description |
---|---|---|
bool | inRenderPass | Indicates if the operation is performed inside a render pass. |
UpdateBufferData(bool, uint)
Updates the buffer data.
Declaration
public void UpdateBufferData(bool inRenderPass, uint sourceSizeInBytes)
Parameters
Type | Name | Description |
---|---|---|
bool | inRenderPass | Indicates if the operation is made inside a render pass. |
uint | sourceSizeInBytes | The source buffer size in bytes. |
Events
Error
Event that allows obtaining error messages if Validation
Declaration
public event EventHandler<string> Error
Event Type
Type | Description |
---|---|
Event |