Advertisement

GatherRed on Texture2DArray in HLSL

Started by May 29, 2018 07:51 PM
2 comments, last by _void_ 6 years, 8 months ago

Hey guys!

I am not sure how to specify array slice for GatherRed function on Texture2DArray in HLSL.

According to MSDN, "location" is one float value. Is it a 3-component float with 3rd component for array slice?

Thanks!

Yup, the array slice goes in the third component of a float3.

Advertisement

@MJP Great thanks!

This topic is closed to new replies.

Advertisement