Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::DrawPacketBuilder Class Reference

Classes

struct  DrawRequest
 

Public Member Functions

void Begin (IAllocator *allocator)
 
void SetDrawArguments (const DrawArguments &drawArguments)
 
void SetIndexBufferView (const IndexBufferView &indexBufferView)
 
void SetRootConstants (AZStd::span< const uint8_t > rootConstants)
 
void SetScissors (AZStd::span< const Scissor > scissors)
 
void SetScissor (const Scissor &scissor)
 
void SetViewports (AZStd::span< const Viewport > viewports)
 
void SetViewport (const Viewport &viewport)
 
void AddShaderResourceGroup (const ShaderResourceGroup *shaderResourceGroup)
 
void AddDrawItem (const DrawRequest &request)
 
const DrawPacketEnd ()
 
const DrawPacketClone (const DrawPacket *original)
 

Static Public Attributes

static const size_t DrawItemCountMax = 16
 

Member Function Documentation

◆ Clone()

const DrawPacket * AZ::RHI::DrawPacketBuilder::Clone ( const DrawPacket original)

Make a copy of an existing DrawPacket. Note: the copy will reference the same DrawSrg as the original, so it is not possible to vary the DrawSrg values between the original draw packet and the cloned one. Only settings that can be modified via the DrawPacket interface can be changed after cloning, such as SetRootConstant and SetInstanceCount


The documentation for this class was generated from the following file: