Skip to content

add sampler type in DescriptorSetLayout #8705

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

pixelflinger
Copy link
Collaborator

No description provided.

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label May 7, 2025
@pixelflinger pixelflinger force-pushed the ma/desclayout branch 2 times, most recently from 16274e3 to 1d83f78 Compare May 8, 2025 23:55
@pixelflinger pixelflinger marked this pull request as ready for review May 8, 2025 23:57
[**New Material Version**]
Now that the per-view layout can be different based on the type of
shadow, we need to make sure we set the proper layout in the pipeline
and use the corresponding descriptor set.

There are now 16 "per-view" layouts and their corresponding descriptor
set. There are two sets of 8, the current set is determined by the
shadow type on the view.

Then during rendering, when we set the pipeline we need to select the
corresponding layout; each material now offers both versions of the
layout and we just pick the right one.

DescriptorSet::setBuffer and setSampler now need the layout in order
to do some validation that the correct type of descriptor is used.
This will help catch problems earlier.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant