-
Notifications
You must be signed in to change notification settings - Fork 8
Add new clampToBorder for samplers' wrapMode
#169
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 new clampToBorder for samplers' wrapMode
#169
Conversation
|
@johguenther I've been adding a new KHR_SAMPLER_CLAMP_TO_BORDER extension to expose this new wrapMode value. |
To be more specific about it applying only to image samplers. Also fix emphasis on parameter names.
|
Actually, went through another extension rename, being more specific about it applying to image samplers. |
|
How about |
johguenther
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, only the usual nitpicking...
appendices/extension_index.txt
Outdated
| * <<extension_sampler_clamp_to_border_image2d, `KHR_SAMPLER_CLAMP_TO_BORDER`>>: `image2D` sampler wrapMode1, wrapMode2 support clampToBorder | ||
| * <<object_types_sampler_image3D, `KHR_SAMPLER_IMAGE3D`>>: `image3D` sampler subtype is supported | ||
| * <<extension_sampler_clamp_to_border_image3d, `KHR_SAMPLER_CLAMP_TO_BORDER`>>: `image3D` sampler wrapMode1, wrapMode2, wrapMode3 support clampToBorder | ||
| * <<extension_sampler_image_clamp_to_border, `KHR_SAMPLER_IMAGE_CLAMP_TO_BORDER`>>: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean, this is indeed tricky as we have one extension for multiple samplers. I'd just keep this entry and primarily link to image1d, then link the bullets to the specific one.
I can simply make those changes if fine with you.
|
@johguenther I should have been addressing all your comments. Feel free to re-review when you have time. Thanks! |
As discussed, here is a proposal to add support for
clampToBorderto ImageXD samplers.Default wrapping mode is still
clampToEdge.Default
borderColoris transparent black.Note that the feature seems to be widely available:
Worst case, this is something that should be implementable using programmable hardware.