I remember this being a thing a while ago, but is there something special that needs to be done to grade to get it to load? Disable the LUTs or something?
you’d have to post the compiler error for me to guess what’s going on.
[ERROR] [slang]: Texture name 'SamplerLUT1' not found in semantic map, Probably the texture name or pass alias is not defined in the preset (Non-semantic textures not supported yet) [ERROR] [slang]: Failed to reflect SPIR-V. Resource usage is inconsistent with expectations. [ERROR] [GLCore]: Failed to create preset: "C:\RetroArch-Win64\shaders\retroarch.slangp". [ERROR] [GLCore]: Failed to create filter chain: "C:\RetroArch-Win64\shaders\retroarch.slangp". Falling back to stock.
I’m not using a preset, just loading the .slang file.
ah, yeah, if you’re just loading it bare, it refers to a LUT and there’s no way to pass LUTs without presets currently. HSM has discussed wanting to add it at some point (it could be covered with a pragma the same way we handle some other preprocessor stuff) but no moves on that yet.
Ok, well here’s the grade preset in case anyone else runs into this. Can this just be added to the misc folder or whatever?
shaders = "1" shader0 = "shaders_slang/misc/grade.slang" filter_linear0 = "false" wrap_mode0 = "clamp_to_border" mipmap_input0 = "false" alias0 = "" float_framebuffer0 = "false" srgb_framebuffer0 = "false" scale_type_x0 = "source" scale_x0 = "1.000000" scale_type_y0 = "source" scale_y0 = "1.000000" textures = "SamplerLUT1;SamplerLUT2;SamplerLUT3;SamplerLUT4" SamplerLUT1 = "shaders_slang/crt/shaders/guest/advanced/lut/trinitron-lut.png" SamplerLUT1_linear = "true" SamplerLUT1_wrap_mode = "clamp_to_border" SamplerLUT1_mipmap = "false" SamplerLUT2 = "shaders_slang/crt/shaders/guest/advanced/lut/inv-trinitron-lut.png" SamplerLUT2_linear = "true" SamplerLUT2_wrap_mode = "clamp_to_border" SamplerLUT2_mipmap = "false" SamplerLUT3 = "shaders_slang/crt/shaders/guest/advanced/lut/nec-lut.png" SamplerLUT3_linear = "true" SamplerLUT3_wrap_mode = "clamp_to_border" SamplerLUT3_mipmap = "false" SamplerLUT4 = "shaders_slang/crt/shaders/guest/advanced/lut/ntsc-lut.png" SamplerLUT4_linear = "true" SamplerLUT4_wrap_mode = "clamp_to_border" SamplerLUT4_mipmap = "false"
This is why I gutted the LUT code from grade at one point, it made it such a pita to use with other chains.
BTW, if you want me to not be a potato and gut that again, lmk