Skip to content

Replace integer cube textures by using 2D texture arrays

Gert Wollny requested to merge gerddie/mesa:fix-cube-int-textures into msclc-d3d12

Integer cube textures are not supported in DirectX, because on one hand, sampling integer textures is not supported, and on the other hand textureLoad is not supported for cube maps so that lowering the sample instructions to TextureLoad is not directly. possible. This MR implements lowering integer valued cube textures to a texture 2d array that can then be handled like the other 2D textures.

On top of that the lowering for integer textures is updated to make it possible to skip handling the boundary conditions, because the lowering of the cube texture to a texture array results in coordinates that are always in the acceptable range.

Merge request reports

Loading