autodesk-forks / MaterialX

MaterialX C++ and Python libraries
http://www.materialx.org/
Apache License 2.0
107 stars 23 forks source link

MATX-328 : Avoid reserved word 'sampler' for Vulkan-compliant codegen in glsl libs #1330

Closed jerrans closed 3 years ago

jerrans commented 3 years ago

For Vulkan-compliant codegen use 'tex_sampler' as variable name instead of reserved word 'sampler' as consistent with earlier changes in other shader libs.

Add a test to generate and validate Vulkan-compliant GLSL.

Fix bug that wasn't including codevalidator arguments as part of the codevalidator command.