Merge remote-tracking branch 'GPUCode/vk-dynamic' into canary2798

This commit is contained in:
Reg Tiangha 2024-03-08 13:23:04 -07:00
commit d40caf39c5
No known key found for this signature in database
GPG key ID: 00D437798B1C2970
3 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@ vec4 GetScreen(int screen_id) {
#ifdef ARRAY_DYNAMIC_INDEX
return texture(screen_textures[screen_id], frag_tex_coord);
#else
// Not all vulkan drivers support shaderSampledImageArrayDynamicIndexing, so index manually.
switch (screen_id) {
case 0:
return texture(screen_textures[0], frag_tex_coord);

View file

@ -36,6 +36,7 @@ vec4 GetScreen(int screen_id) {
#ifdef ARRAY_DYNAMIC_INDEX
return texture(screen_textures[screen_id], frag_tex_coord);
#else
// Not all vulkan drivers support shaderSampledImageArrayDynamicIndexing, so index manually.
switch (screen_id) {
case 0:
return texture(screen_textures[0], frag_tex_coord);

View file

@ -24,6 +24,7 @@ vec4 GetScreen(int screen_id) {
#ifdef ARRAY_DYNAMIC_INDEX
return texture(screen_textures[screen_id], frag_tex_coord);
#else
// Not all vulkan drivers support shaderSampledImageArrayDynamicIndexing, so index manually.
switch (screen_id) {
case 0:
return texture(screen_textures[0], frag_tex_coord);