Skip to content
Snippets Groups Projects
  1. Nov 20, 2024
  2. Nov 14, 2024
  3. Nov 13, 2024
  4. Nov 12, 2024
    • Giovanni Mascellani's avatar
      vkd3d-shader/spirv: Get rid of the "offset_component_count" field of struct... · 7412e660
      Giovanni Mascellani authored
      vkd3d-shader/spirv: Get rid of the "offset_component_count" field of struct vkd3d_spirv_resource_type.
      
      The number of components needed for texel offsets is the number of
      components needed to address a single image/layer of an array. I.e.,
      "coordinate_component_count - 1" for array textures, and
      "coordinate_component_count" for non-array textures.
      
      This change will also fix sampling of cube textures with explicit
      gradients. Because texel offsets are unsupported for cube textures,
      "offset_component_count" is currently 0 for cube textures. However, the
      SAMPLE_GRAD handler also uses "offset_component_count" to determine the
      number of components needed for the explicit gradients, and SAMPLE_GRAD
      is supposed to work with cube textures.
      
      This commit fixes the compilation of shaders in Star Wars Jedi:
      Survivor.
      7412e660
  5. Nov 11, 2024
  6. Nov 06, 2024
Loading