1 # Same as basic-texture2D.shader_test, but with some math on the handle
5 GL_ARB_bindless_texture
7 [vertex shader passthrough]
11 #extension GL_ARB_bindless_texture: require
13 layout (bindless_sampler) uniform sampler2D tex;
14 uniform uvec2 handleOffset;
22 uvec2 handle = uvec2(tex);
23 handle.x -= 0x12345678u;
24 handle.y -= 0x9abcdef0u;
26 fixedTex = sampler2D(handle + handleOffset);
28 finalColor = texture2D(fixedTex, vec2(0, 0));
32 texture rgbw 0 (16, 16)
34 uniform uvec2 handleOffset 0x12345678 0x9abcdef0
37 relative probe rgb (0.0, 0.0) (1.0, 0.0, 0.0)