3inline plGALShaderCreationDescription::plGALShaderCreationDescription()
8inline plGALShaderCreationDescription::~plGALShaderCreationDescription()
10 for (plUInt32 i = 0; i < plGALShaderStage::ENUM_COUNT; ++i)
12 m_ByteCodes[i] =
nullptr;
16inline bool plGALShaderCreationDescription::HasByteCodeForStage(plGALShaderStage::Enum stage)
const
18 return m_ByteCodes[stage] !=
nullptr && m_ByteCodes[stage]->IsValid();
21inline void plGALTextureCreationDescription::SetAsRenderTarget(
22 plUInt32 uiWidth, plUInt32 uiHeight, plGALResourceFormat::Enum format, plGALMSAASampleCount::Enum sampleCount )
25 m_uiHeight = uiHeight;
27 m_uiMipLevelCount = 1;
29 m_SampleCount = sampleCount;
31 m_Type = plGALTextureType::Texture2D;
32 m_bAllowShaderResourceView =
true;
34 m_bCreateRenderTarget =
true;
35 m_bAllowDynamicMipGeneration =
false;
36 m_ResourceAccess.m_bReadBack =
false;
37 m_ResourceAccess.m_bImmutable =
true;
41PL_FORCE_INLINE plGALVertexAttribute::plGALVertexAttribute(
42 plGALVertexAttributeSemantic::Enum semantic, plGALResourceFormat::Enum format, plUInt16 uiOffset, plUInt8 uiVertexBufferSlot,
bool bInstanceData)
43 : m_eSemantic(semantic)
45 , m_uiOffset(uiOffset)
46 , m_uiVertexBufferSlot(uiVertexBufferSlot)
47 , m_bInstanceData(bInstanceData)
This class provides a base class for hashable structs (e.g. descriptor objects).
Definition HashableStruct.h:17
void * m_pExisitingNativeObject
Can be used to encapsulate existing native textures in objects usable by the GAL.
Definition Descriptors.h:197