Add sampler slots usage and inputs/outputs count to GPU shader program bindings meta

This commit is contained in:
Wojtek Figat
2026-02-26 12:02:52 +01:00
parent ac4526744a
commit 20c9ed27fb
7 changed files with 35 additions and 14 deletions

View File

@@ -21,6 +21,9 @@ struct FLAXENGINE_API ShaderBindings
uint32 UsedCBsMask;
uint32 UsedSRsMask;
uint32 UsedUAsMask;
uint32 UsedSamplersMask;
uint16 InputsCount;
uint16 OutputsCount;
FORCE_INLINE bool IsUsingCB(uint32 slotIndex) const
{
@@ -36,6 +39,11 @@ struct FLAXENGINE_API ShaderBindings
{
return (UsedUAsMask & (1u << slotIndex)) != 0u;
}
FORCE_INLINE bool IsUsingSampler(uint32 slotIndex) const
{
return (UsedSamplersMask & (1u << slotIndex)) != 0u;
}
};
struct GPUShaderProgramInitializer