Class ComputeDepthBounds
This class contains all the resources needed by the compute shader used to compute the depth bounds of a camera.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class ComputeDepthBounds : DisposableObject
Constructors
ComputeDepthBounds()
Initializes a new instance of the ComputeDepthBounds class.
Declaration
public ComputeDepthBounds()
Fields
AutoDepthBounds
Represents the depth bounds compute shader parameters.
Declaration
protected AutoDepthBounds AutoDepthBounds
Field Value
| Type | Description |
|---|---|
| AutoDepthBounds |
DepthBoundsBuffer
Buffer with the maximum and minimum values of depth.
Declaration
protected Buffer DepthBoundsBuffer
Field Value
| Type | Description |
|---|---|
| Buffer |
StagingDepthBoundsBuffer
Staging buffer used to read back from the CPU side.
Declaration
protected Buffer StagingDepthBoundsBuffer
Field Value
| Type | Description |
|---|---|
| Buffer |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
ProcessFrame(CommandBuffer, Texture, Camera)
Processes and returns the luminance average of the frame.
Declaration
public void ProcessFrame(CommandBuffer commandBuffer, Texture depth, Camera camera)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | commandBuffer | The command buffer. |
| Texture | depth | The depth buffer. |
| Camera | camera | Current camera. |
RefreshDepthView(Texture)
Refreshes the depth texture used to copy the depth buffer.
Declaration
public void RefreshDepthView(Texture depth)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture | depth | The new depth texture. |