Search Results for

    Show / Hide Table of Contents

    Class ComputeDepthBounds

    This class contains all the resource need by the compute shader used to compute the depth bounds of a camera.

    Inheritance
    object
    DisposableObject
    ComputeDepthBounds
    Implements
    IDisposable
    Inherited Members
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class ComputeDepthBounds : DisposableObject, IDisposable

    Constructors

    ComputeDepthBounds()

    Initializes a new instance of the ComputeDepthBounds class.

    Declaration
    public ComputeDepthBounds()

    Fields

    AutoDepthBounds

    Represent the depth bounds compute shader paremeters.

    Declaration
    protected AutoDepthBounds AutoDepthBounds
    Field Value
    Type Description
    AutoDepthBounds

    ComputeCommandQueue

    Command Queue used to process the depth bound compute.

    Declaration
    protected CommandQueue ComputeCommandQueue
    Field Value
    Type Description
    CommandQueue

    DepthBoundsBuffer

    Buffer with the max and min value of depth.

    Declaration
    protected Buffer DepthBoundsBuffer
    Field Value
    Type Description
    Buffer

    StagingDepthBoundsBuffer

    Staging buffer used to read back from CPU side.

    Declaration
    protected Buffer StagingDepthBoundsBuffer
    Field Value
    Type Description
    Buffer

    depthTexture

    The temp depth texture use as compute input texture.

    Declaration
    protected Texture depthTexture
    Field Value
    Type Description
    Texture

    Methods

    Destroy()

    Destroy all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    ProcessFrame(Texture, Camera)

    Process and return 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)

    Refresh the depthtexture used to copy the depth buffer.

    Declaration
    public void RefreshDepthTexture(Texture depth)
    Parameters
    Type Name Description
    Texture depth

    The new depthtexture.

    Implements

    IDisposable

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX