File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -816,7 +816,7 @@ class VulkanExample : public VulkanExampleBase
816
816
// Load binary SPIR-V shader
817
817
shaderStages[0 ].module = loadSPIRVShader (getShadersPath () + " triangle/triangle.vert.spv" );
818
818
// Main entry point for the shader
819
- shaderStages[0 ].pName = " main " ;
819
+ shaderStages[0 ].pName = getShaderEntryPoint (VK_SHADER_STAGE_VERTEX_BIT) ;
820
820
assert (shaderStages[0 ].module != VK_NULL_HANDLE);
821
821
822
822
// Fragment shader
@@ -826,7 +826,7 @@ class VulkanExample : public VulkanExampleBase
826
826
// Load binary SPIR-V shader
827
827
shaderStages[1 ].module = loadSPIRVShader (getShadersPath () + " triangle/triangle.frag.spv" );
828
828
// Main entry point for the shader
829
- shaderStages[1 ].pName = " main " ;
829
+ shaderStages[1 ].pName = getShaderEntryPoint (VK_SHADER_STAGE_FRAGMENT_BIT) ;
830
830
assert (shaderStages[1 ].module != VK_NULL_HANDLE);
831
831
832
832
// Set pipeline shader stage info
You can’t perform that action at this time.
0 commit comments