Search Results for

    Show / Hide Table of Contents

    Struct GPUDrawPass

    GPU pass that explicitly defines render targets and depth buffer within a rendering pass. Can be used to optimize GPU rendering on tiled GPUs with manual control over attachment operations (load, store, clear, discard, etc.) that reduce memory bandwidth usage.

    Draw Pass discards any render targets or depth buffer bound to the context (reduces state-tracking).

    Inherited Members
    GPUPass::Context
    GPUPass::GPUPass(GPUContext* context)
    GPUPass::Transition(GPUResource* resource, GPUResourceAccess access)
    GPUPass::~GPUPass()
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/GPUPass.h
    Syntax
    public struct GPUDrawPass : public GPUPass

    Constructors

    ~GPUDrawPass()

    Declaration
    public ~GPUDrawPass()

    GPUDrawPass(GPUContext* context, GPUTextureView* depthBuffer, GPUDrawPassAction depthAction, Span<GPUTextureView* > renderTargets, Span<GPUDrawPassAction> renderTargetsActions)

    Declaration
    public GPUDrawPass(GPUContext* context, GPUTextureView* depthBuffer, GPUDrawPassAction depthAction, Span<GPUTextureView* > renderTargets, Span<GPUDrawPassAction> renderTargetsActions)
    Parameters
    GPUContext context

    GPUTextureView depthBuffer

    GPUDrawPassAction depthAction

    Span<GPUTextureView > renderTargets

    Span<GPUDrawPassAction> renderTargetsActions

    GPUDrawPass(GPUContext* context, GPUTextureView* depthBuffer, Span<GPUTextureView* > renderTargets)

    Declaration
    public GPUDrawPass(GPUContext* context, GPUTextureView* depthBuffer, Span<GPUTextureView* > renderTargets)
    Parameters
    GPUContext context

    GPUTextureView depthBuffer

    Span<GPUTextureView > renderTargets

    GPUDrawPass(GPUContext* context, Span<GPUTextureView* > renderTargets)

    Declaration
    public GPUDrawPass(GPUContext* context, Span<GPUTextureView* > renderTargets)
    Parameters
    GPUContext context

    Span<GPUTextureView > renderTargets

    GPUDrawPass(GPUContext* context, Span<GPUTextureView* > renderTargets, Span<GPUDrawPassAction> renderTargetsActions)

    Declaration
    public GPUDrawPass(GPUContext* context, Span<GPUTextureView* > renderTargets, Span<GPUDrawPassAction> renderTargetsActions)
    Parameters
    GPUContext context

    Span<GPUTextureView > renderTargets

    Span<GPUDrawPassAction> renderTargetsActions

    Fields

    DepthAction

    Declaration
    public GPUDrawPassAction DepthAction
    Field Value
    GPUDrawPassAction

    DepthBuffer

    Declaration
    public GPUTextureView* DepthBuffer
    Field Value
    GPUTextureView

    RenderTargets

    Declaration
    public GPUTextureView** RenderTargets
    Field Value
    GPUTextureView

    RenderTargetsActions

    Declaration
    public GPUDrawPassAction* RenderTargetsActions
    Field Value
    GPUDrawPassAction

    RenderTargetsCount

    Declaration
    public int32 RenderTargetsCount
    Field Value
    int32

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2026 Wojciech Figat