MoltenVK
MoltenVK copied to clipboard
MoltenVK : VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
[Vulkan] MoltenVK : VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):
program_source:37:25: error: no member named 'sample' in 'metal::sampler'
color *= samDiffuse.sample(samDiffuseSmplr, float2(vary.UV0.x, 0.5));
~~~~~~~~~~ ^
program_source:37:32: error: use of undeclared identifier 'samDiffuseSmplr'
color *= samDiffuse.sample(samDiffuseSmplr, float2(vary.UV0.x, 0.5));
^
.
[Vulkan] MoltenVK : VK_ERROR_INVALID_SHADER_NV: Fragment shader function could not be compiled into pipeline. See previous logged error.
How to check what code generated ? I used glslang to compile HLSL into my project.
Here is my repo : https://github.com/metarutaiga/Minamoto To select xxGraphic and Vulkan