(glow) Enforce the R8G8B8A8_SRGB format from within the shaders

This commit is contained in:
Arzed Five 2016-12-08 17:49:41 +00:00
parent 0640cc2cca
commit b8f930c86b
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;