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 |
ComputeCommandQueue
Command Queue used to process the depth-bounded compute.
Declaration
protected CommandQueue ComputeCommandQueue
Field Value
| Type | Description |
|---|---|
| CommandQueue |
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 |
depthTexture
The temporary depth texture used as a compute input texture.
Declaration
protected Texture depthTexture
Field Value
| Type | Description |
|---|---|
| Texture |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
ProcessFrame(Texture, Camera)
Processes and returns the luminance average of the frame.
Declaration
public void ProcessFrame(Texture depth, Camera camera)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture | depth | Current depth. |
| Camera | camera | Current camera. |
RefreshDepthTexture(Texture)
Refreshes the depth texture used to copy the depth buffer.
Declaration
public void RefreshDepthTexture(Texture depth)
Parameters
| Type | Name | Description |
|---|---|---|
| Texture | depth | The new depth texture. |