Fixes and shader update

#2673
This commit is contained in:
Wojtek Figat
2024-09-12 09:02:48 +02:00
parent 7bc4de4e6b
commit 33ccdea761
4 changed files with 13 additions and 17 deletions

View File

@@ -39,11 +39,13 @@ public:
FORCE_INLINE GPUPipelineState* Get(int index) const
{
ASSERT_LOW_LAYER(index >= 0 && index < Size);
return States[index];
}
FORCE_INLINE GPUPipelineState*& operator[](int32 index)
{
ASSERT_LOW_LAYER(index >= 0 && index < Size);
return States[index];
}
@@ -129,6 +131,7 @@ public:
public:
FORCE_INLINE GPUShaderProgramCS* Get(const int index) const
{
ASSERT_LOW_LAYER(index >= 0 && index < Size);
return Shaders[index];
}