Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glsl-in: Texture builtins fixes #1719

Merged
merged 1 commit into from
Feb 10, 2022
Merged

Commits on Feb 8, 2022

  1. glsl-in: Texture builtins fixes

    This one grew out of hand quick. Initially it was just replacing the bit
    loops with a function driving the declarations to make the code sharing
    better and support different scalar kinds.
    
    Now it includes a lot of fixes:
    - `textureSize` now also returns the array layers as the last component
      on the return (only for arrayed textures)
    - `textureSize` now supports multisampled textures
    - the `texture` family of functions now consumes a `vec3` coordinate
      vector for all 1D shadow textures
    - Shadow textures can use the bias version of `texture` functions
      (temporarily disabled since naga doesn't support it)
    - 3D textures can be used in `textureProj`
    - `sampler2DArrayShadow` can't be used in `textureLod` or in `texture` with bias
    - Cube textures cannot be used with offsets
    
    Updates the tests to cover all functions
    JCapucho committed Feb 8, 2022
    Configuration menu
    Copy the full SHA
    ecc711a View commit details
    Browse the repository at this point in the history