MoltenVK icon indicating copy to clipboard operation
MoltenVK copied to clipboard

MoltenVK : VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error code 3):

Open metarutaiga opened this issue 1 month ago • 7 comments

[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

metarutaiga avatar May 05 '24 17:05 metarutaiga