From 9d1d59604c91b3b26e54c2d7c5915ef9285eab99 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Thu, 18 Dec 2014 10:22:27 -0800 Subject: [PATCH] Implemented missing casts. --- src/bgfx_compute.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bgfx_compute.sh b/src/bgfx_compute.sh index 575678ef..f0b65431 100644 --- a/src/bgfx_compute.sh +++ b/src/bgfx_compute.sh @@ -12,8 +12,14 @@ #if BGFX_SHADER_LANGUAGE_HLSL -float uintBitsToFloat(uint _x) { return asfloat(_x); } +float uintBitsToFloat(uint _x) { return asfloat(_x); } +vec2 uintBitsToFloat(uint2 _x) { return asfloat(_x); } +vec3 uintBitsToFloat(uint3 _x) { return asfloat(_x); } +vec4 uintBitsToFloat(uint4 _x) { return asfloat(_x); } uint floatBitsToUint(float _x) { return asuint(_x); } +uvec2 floatBitsToUint(vec2 _x) { return asuint(_x); } +uvec3 floatBitsToUint(vec3 _x) { return asuint(_x); } +uvec4 floatBitsToUint(vec4 _x) { return asuint(_x); } #define SHARED groupshared