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

Metal: virtualize samplers to support the minimum of 31 textures in shaders #5788

Open
pixelflinger opened this issue Jul 14, 2022 · 0 comments
Assignees
Labels
ios Issue/request for iOS only macos Issue/feature request for macOS only metal Issue/request specific to Metal

Comments

@pixelflinger
Copy link
Collaborator

All version of metal support at least 31 texture images, but only a maximum of 16 samplers. Currently the metal backend as a 1:1 mapping between these, and as such supports only 16 textures in shaders.

We want to cache/virtualize samplers so that up to 31 textures can be used.

For now, it'll be okay to assume that we won't encounter more than 16 different samplers per draw call.

@pixelflinger pixelflinger added enhancement New feature or request macos Issue/feature request for macOS only ios Issue/request for iOS only metal Issue/request specific to Metal labels Jul 14, 2022
@pixelflinger pixelflinger removed the enhancement New feature or request label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ios Issue/request for iOS only macos Issue/feature request for macOS only metal Issue/request specific to Metal
Projects
None yet
Development

No branches or pull requests

2 participants