feat: add option to map unused uniforms
This commit is contained in:
parent
5aa896ae05
commit
ee04ba0786
7 changed files with 21 additions and 5 deletions
|
|
@ -344,6 +344,7 @@ public:
|
|||
numTaskEXTPayloads(0),
|
||||
autoMapBindings(false),
|
||||
autoMapLocations(false),
|
||||
mapUnusedUniforms(false),
|
||||
flattenUniformArrays(false),
|
||||
useUnknownFormat(false),
|
||||
hlslOffsets(false),
|
||||
|
|
@ -1008,6 +1009,9 @@ public:
|
|||
else
|
||||
return pos->second;
|
||||
}
|
||||
|
||||
void setMapUnusedUniforms() { mapUnusedUniforms = true; }
|
||||
bool getMapUnusedUniforms() const { return mapUnusedUniforms; }
|
||||
#ifdef ENABLE_HLSL
|
||||
void setHlslFunctionality1() { hlslFunctionality1 = true; }
|
||||
bool getHlslFunctionality1() const { return hlslFunctionality1; }
|
||||
|
|
@ -1237,6 +1241,7 @@ protected:
|
|||
std::vector<std::string> resourceSetBinding;
|
||||
bool autoMapBindings;
|
||||
bool autoMapLocations;
|
||||
bool mapUnusedUniforms;
|
||||
bool flattenUniformArrays;
|
||||
bool useUnknownFormat;
|
||||
bool hlslOffsets;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue