Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GenerateShaders.py fail, GL_ARB_bindless_texture not enabled #24

Open
ericwomer opened this issue Feb 5, 2023 · 3 comments
Open

GenerateShaders.py fail, GL_ARB_bindless_texture not enabled #24

ericwomer opened this issue Feb 5, 2023 · 3 comments

Comments

@ericwomer
Copy link

When running python GenerateShaders.py I get this message

python GenerateShaders.py 
> Checking dependency files in current folder
> Checking dependency files in CAS/
> Checking dependency files in ../Generated/
> Checking dependency files in LPM/
> Building RsSwapchain.frag
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building EfColorTint.comp
> Building EfChromaticAberration.comp
> Building RtRaygenIndirectInit.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building CmVertexPreprocess.comp
> Building RsDepthCopying.frag
> Building RsDecal.frag
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RsRasterizerLensFlare.frag
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RtRaygenReflRefr.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building CmSVGFAtrous.comp
> Building CmBloomDownsample.comp
> Building EfWipe.comp
> Building RsWorld.frag
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RtGradients.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building CmSVGFEstimateVariance.comp
> Building CmCas.comp
> Building RtRaygenDirect.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building EfHueShift.comp
> Building RtMissShadowCheck.rmiss
> Building RtRaygenPrimary.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building CmPrepareFinal.comp
LPM/ffx_lpm.h:307: error: 'opAAddOneF3' : no matching overloaded function found
1 error generated.

> Building CmBloomUpsample.comp
> Building RsDecal.vert
> Building CmLightGridBuild.comp
> Building CmLuminanceAvg.comp
> Building EfCrtDemodulateEncode.comp
> Building RtVolumetric.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building EfDistortedSides.comp
> Building RtMiss.rmiss
> Building CmASVGFGradientAtrous.comp
> Building RsSky.frag
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RtAlphaTest.rahit
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RtRaygenIndirectFinal.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building RtClsOpaque.rchit
> Building EfRadialBlur.comp
> Building CmSVGFAtrous_Iter0.comp
> Building EfCrtDecode.comp
> Building CmCullLensFlares.comp
> Building CmAntiFirefly.comp
> Building RsRasterizerMultiview.vert
> Building CmVolumetricProcess.comp
> Building CmLuminanceHistogram.comp
> Building CmBloomApply.comp
> Building RsRasterizerLensFlare.vert
> Building CmCheckerboard.comp
> Building CmSVGFTemporalAccumulation.comp
> Building RtInitialReservoirs.rgen
/home/eric/src/RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:74: error: 'return' : sampler or image can be used as return type only when the extension GL_ARB_bindless_texture enabled
1 error generated.

> Building EfWaves.comp
> Building EfInverseBW.comp
> 15 shader builds failed.

I'm running KUbuntu 22.04 on a laptop with a GTX 3060 mobile and the NVidia 525.78.01 drivers.

@SharkyRawr
Copy link

SharkyRawr commented Feb 24, 2023

Same, naively trying to enable them with:

#extension GL_ARB_bindless_texture : require

results in

RayTracedGL1/Source/Shaders/ShaderCommonGLSLFunc.h:23: error: 'GL_ARB_bindless_texture' : not allowed when using generating SPIR-V codes

But I have no clue about the Vulkan SDK and shaders and stuff so I'm probably doing it wrong.

This seems related: https://stackoverflow.com/a/41595737

@SharkyRawr
Copy link

Using Vulkan SDK 1.2.198.1 it seems to work except for:

> Building CmPrepareFinal.comp
LPM/ffx_lpm.h:307: error: 'opAAddOneF3' : no matching overloaded function found
1 error generated.

@ericwomer
Copy link
Author

Still an issue with Vulkan SDK 1.3.239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants