vulkan: RGB10A2_conv: Use unnormalized integer coords

closes GH-291
This commit is contained in:
Martin Piatka
2023-02-06 15:36:51 +01:00
parent 566cb53bcf
commit 95fcfecbec
2 changed files with 1 additions and 3 deletions

View File

@@ -17,10 +17,8 @@ void main()
if(pixelCoords.x >= image_size.width || pixelCoords.y >= image_size.height){
return;
}
vec2 textureCoords = vec2(float(pixelCoords.x) / image_size.width, float(pixelCoords.y) / image_size.height);
uvec4 x = texture(inputImage, textureCoords);
uvec4 x = texelFetch(inputImage, pixelCoords, 0);
// RGBA in big endian representation
// RRRRRRRR|RRGGGGGG|GGGGBBBB|BBBBBBAA