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

fix metal and vulkan renderer set image bug #3083

Closed
wants to merge 1 commit into from

Conversation

junjie020
Copy link
Contributor

I have pulled a PR:
#3063

It try to fix set image without sampler state bug in vulkan.

After compare with D3D11 and D3D12, it should check the bind.m_access type, if it is Access::Read, the sampler state must be set.(I just follow D3D11 and D3D12 renderer, and try to make vulkan and metal renderer keep the same logic). The sampler state is needed both compute and render pipelines.

https://github.com/bkaradzic/bgfx/blob/master/src/renderer_d3d11.cpp#L5813
https://github.com/bkaradzic/bgfx/blob/master/src/renderer_d3d11.cpp#L6144

https://github.com/bkaradzic/bgfx/blob/master/src/renderer_d3d12.cpp#L6613
https://github.com/bkaradzic/bgfx/blob/master/src/renderer_d3d12.cpp#L6925

@bkaradzic
Copy link
Owner

cc @pezcode

@junjie020
Copy link
Contributor Author

The lastest version already fix this.

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.

2 participants