Web: Make switched methods all be non-virtual, more web-dependent code,
added a few more HLSL flag tests. This was mostly focused on the SPV generator. Saves about 17K.
This commit is contained in:
@@ -227,7 +227,9 @@ public:
|
||||
shader.setAutoMapBindings(true);
|
||||
}
|
||||
shader.setTextureSamplerTransformMode(texSampTransMode);
|
||||
#ifdef ENABLE_HLSL
|
||||
shader.setFlattenUniformArrays(flattenUniformArrays);
|
||||
#endif
|
||||
|
||||
if (controls & EShMsgSpvRules) {
|
||||
if (controls & EShMsgVulkanRules) {
|
||||
@@ -300,7 +302,9 @@ public:
|
||||
shader.setShiftSsboBinding(baseSsboBinding);
|
||||
shader.setAutoMapBindings(autoMapBindings);
|
||||
shader.setAutoMapLocations(true);
|
||||
#ifdef ENABLE_HLSL
|
||||
shader.setFlattenUniformArrays(flattenUniformArrays);
|
||||
#endif
|
||||
|
||||
bool success = compile(&shader, code, entryPointName, controls);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user