Merge pull request #48 from rz5/master

(glow) Enforce the R8G8B8A8_SRGB format from within the shaders
This commit is contained in:
hizzlekizzle 2016-12-08 19:43:54 -06:00 committed by GitHub
commit f029113ceb
8 changed files with 428 additions and 422 deletions

View file

@ -20,6 +20,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 2) uniform sampler2D Source;

View file

@ -25,6 +25,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 1) in float data_pix_no;
layout(location = 2) in float data_one;

View file

@ -32,6 +32,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 1) in vec2 data_pix_no;
layout(location = 2) in float data_one;

View file

@ -25,6 +25,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 1) in float data_pix_no;
layout(location = 2) in float data_one;

View file

@ -27,6 +27,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 2) uniform sampler2D Source;

View file

@ -29,6 +29,7 @@ void main()
}
#pragma stage fragment
#pragma format R8G8B8A8_SRGB
layout(location = 0) in vec2 vTexCoord;
layout(location = 0) out vec4 FragColor;
layout(set = 0, binding = 2) uniform sampler2D Source;