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

Add support for VK_EXT_depth_clip_control #2430

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

squidbus
Copy link
Contributor

SPIRV-Cross already has a flag for converting from [-w, w] depth to [0, w]. Take advantage of that to implement VK_EXT_depth_clip_control.

Ran CTS tests dEQP-VK.pipeline.monolithic.depth.depth_clip_control.*, results:

Test run totals:
  Passed:        36/72 (50.0%)
  Failed:        0/72 (0.0%)
  Not supported: 36/72 (50.0%)
  Warnings:      0/72 (0.0%)
  Waived:        0/72 (0.0%)

With the general case for Not supported just being tests using unsupported depth formats.

Copy link
Collaborator

@cdavis5e cdavis5e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is straightforward enough.

@cdavis5e cdavis5e merged commit aba9976 into KhronosGroup:main Jan 29, 2025
6 checks passed
@makigumo
Copy link

Shouldn't shouldFixupClipSpace also be added here?

template<class Archive>
void serialize(Archive & archive, SPIRVToMSLConversionOptions& opt) {
archive(opt.mslOptions,
opt.entryPointName,
opt.entryPointStage,
opt.tessPatchKind,
opt.numTessControlPoints,
opt.shouldFlipVertexY);
}

@squidbus
Copy link
Contributor Author

You are right, I seem to have missed that. I've opened a fix for that here #2432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants