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

D3D11 backend: allow injected textures to not have a shader-resource-view. #930

Closed
floooh opened this issue Oct 28, 2023 · 0 comments · Fixed by #932
Closed

D3D11 backend: allow injected textures to not have a shader-resource-view. #930

floooh opened this issue Oct 28, 2023 · 0 comments · Fixed by #932
Assignees

Comments

@floooh
Copy link
Owner

floooh commented Oct 28, 2023

Some injected texture types are incompatible with shader-resource-views. Currently when no injected SRV is provided, _sg_d3d11_create_image() will create one anyway (as a sort of convenience service).

Instead, if no injected SRV is provided, no attempt should be made to create one.

Long term it may make sense to introduce sg_image_view objects (would especially make sense if baked sg_pass objects are ditched, see: #904)

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

Successfully merging a pull request may close this issue.

1 participant