Plasma Engine  2.0
Loading...
Searching...
No Matches
ShaderVulkan_inl.h
1
2vk::ShaderModule plGALShaderVulkan::GetShader(plGALShaderStage::Enum stage) const
3{
4 return m_Shaders[stage];
5}
6
7plUInt32 plGALShaderVulkan::GetSetCount() const
8{
9 return m_SetBindings.GetCount();
10}
11
12vk::DescriptorSetLayout plGALShaderVulkan::GetDescriptorSetLayout(plUInt32 uiSet) const
13{
14 PL_ASSERT_DEBUG(uiSet < m_descriptorSetLayout.GetCount(), "Set index out of range.");
15 return m_descriptorSetLayout[uiSet];
16}
17
18plArrayPtr<const plShaderResourceBinding> plGALShaderVulkan::GetBindings(plUInt32 uiSet) const
19{
20 PL_ASSERT_DEBUG(uiSet < m_SetBindings.GetCount(), "Set index out of range.");
21 return m_SetBindings[uiSet].GetArrayPtr();
22}
23
24vk::PushConstantRange plGALShaderVulkan::GetPushConstantRange() const
25{
26 return m_pushConstants;
27}
plArrayPtr< T > GetArrayPtr()
Returns an array pointer to the array data, or an empty array pointer if the array is empty.
Definition ArrayBase_inl.h:441
plUInt32 GetCount() const
Returns the number of active elements in the array.
Definition ArrayBase_inl.h:172
This class encapsulates an array and it's size. It is recommended to use this class instead of plain ...
Definition ArrayPtr.h:37