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).
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
DepthBuffer
RenderTargets
RenderTargetsActions
RenderTargetsCount
Declaration
public int32 RenderTargetsCount
Field Value
|
int32
|