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

Remove line about multisampled texture from clCreateFromD3D11Texture3DKHR #1284

Open
lakshmih opened this issue Nov 11, 2024 · 1 comment
Open
Assignees

Comments

@lakshmih
Copy link
Contributor

In error descriptions for clCreateFromD3D11Texture3DKHR, error value CL_INVALID_D3D11_RESOURCE_KHR, the spec says " if resource is a multisampled texture"

However D3D11 spec only allows 2D multisampled textures and has the restriction:

• SampleDesc: Multisample parameters for the surface (Sample Count and Quality Level). For buffers, Texture1D, Texture1DArray, and Texture3D resources, the only Sample Count allowed is 1 and the only allowed Quality Level is zero.

Further, [D3D11_TEXTURE3D_DESC] (https://learn.microsoft.com/en-us/windows/win32/api/d3d11/ns-d3d11-d3d11_texture3d_desc) does not have a parameter for SampleDesc.

Could we remove the part about multisampled textures from clCreateFromD3D11Texture3DKHR?

@bashbaug
Copy link
Contributor

Just to confirm: the current text isn't wrong per se, but it is unnecessary and potentially confusing, because it is not possible to create a D3D11 3D texture resource that is multi-sampled, correct?

If so, the same change should also be made for D3D10 3D texture resources.

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

No branches or pull requests

2 participants