glsl to v430

This commit is contained in:
intra0 2024-12-17 14:16:00 -06:00 committed by GitHub
parent 9f5b44a854
commit bd9828d4df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
#version 450 #version 430
#extension GL_ARB_texture_gather : enable #extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_separate_shader_objects : enable
#ifdef VULKAN #ifdef VULKAN

View File

@ -1,4 +1,4 @@
#version 450 #version 430
#extension GL_ARB_texture_gather : enable #extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_separate_shader_objects : enable
#ifdef VULKAN #ifdef VULKAN

View File

@ -1,4 +1,4 @@
#version 450 #version 430
#extension GL_ARB_texture_gather : enable #extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_separate_shader_objects : enable
#ifdef VULKAN #ifdef VULKAN

View File

@ -1,4 +1,4 @@
#version 460 #version 430
#extension GL_ARB_texture_gather : enable #extension GL_ARB_texture_gather : enable
#extension GL_ARB_separate_shader_objects : enable #extension GL_ARB_separate_shader_objects : enable
#ifdef VULKAN #ifdef VULKAN
@ -11,7 +11,7 @@
#define gl_InstanceID gl_InstanceIndex #define gl_InstanceID gl_InstanceIndex
#else #else
#define ATTR_LAYOUT(__vkSet, __location) layout(location = __location) #define ATTR_LAYOUT(__vkSet, __location) layout(location = __location)
#define UNIFORM_BUFFER_LAYOUT(__glLocation, __vkSet, __vkLocation) layout(binding = __glLocation, std140) #define UNIFORM_BUFFER_LAYOUT(__glLocation, __vkSet, __vkLocation) layout(binding = __glLocation, std140)
#define TEXTURE_LAYOUT(__glLocation, __vkSet, __vkLocation) layout(binding = __glLocation) #define TEXTURE_LAYOUT(__glLocation, __vkSet, __vkLocation) layout(binding = __glLocation)
#define SET_POSITION(_v) gl_Position = _v #define SET_POSITION(_v) gl_Position = _v
#define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale,gl_FragCoord.zw) #define GET_FRAGCOORD() vec4(gl_FragCoord.xy*uf_fragCoordScale,gl_FragCoord.zw)
@ -21,7 +21,7 @@
// shader d121b990e877579c // shader d121b990e877579c
//shadow penumbra //shadow penumbra
const float resXScale = float($width)/float($gameWidth); const float resXScale = float($width)/float($gameWidth);
const float resYScale = float($height)/float($gameHeight); const float resYScale = float($height)/float($gameHeight);
#ifdef VULKAN #ifdef VULKAN
layout(set = 1, binding = 5) uniform ufBlock layout(set = 1, binding = 5) uniform ufBlock