shader-slang / slang

Making it easier to work with shaders
MIT License
2.06k stars 177 forks source link

Add Support for Sparse/Tiled Texture Operations (HLSL, GLSL, SPIRV) #4495

Open ArielG-NV opened 3 months ago

ArielG-NV commented 3 months ago

Problem: Currently Slang does not support sparse/tiled texture operations.

Solution: Support for Gather operations with a status are being implemented, but we still require to implement more functions to complete the support for hlsl.meta.slang

  1. Sample() with status
  2. Load() with status [Spec]
  3. CheckAccessFullyMapped() to fetch the meaning of status

GLSL implements the operations with: GL_ARB_sparse_texture2

SPIRV implements the operations with: OpCapability SparseResidency