I am trying to write/translate some code from GLSL to HLSL, I am facing some issues and I’d like to get some feedback on it.
I have the following code in GLSL:
diffuseF = texelFetch(DiffuseT, coords, 0).rgb;
I translated this into:
diffuseF = DiffuseT.Load(coords, 0).rgb;
but I am not sure if it is correct.
I also have this line in GLSL:
vec3 diffuseA = textureLod(DiffuseAccT, warped_uv, 0).rgb;
I have translated into:
float3 diffuseA = DiffuseAccT.SampleLevel(warped_uv, 0).rgb:
but this seems to be wrong I guess.
Any thoughts please?
New contributor
Idriss is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.