[go: nahoru, domu]

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 shift resource bindings in Vulkan #50

Merged
merged 7 commits into from
Sep 25, 2019

Conversation

Jorgemagic
Copy link
Contributor
@Jorgemagic Jorgemagic commented Aug 29, 2019

Hi @gongminmin ,

I added 4 new parameters in Options struct:

int shiftAllTexturesBindings: First binding number for Vulkan textures.
int shiftAllSamplersBindings: First binding number for Vulkan samplers.
int shiftAllCBuffersBindings: First binding number for Vulkan constant buffers.
int shiftAllUABuffersBindings: First binding number for Vulkan unordered access buffers.

It is equivalent to use -fvk-{b|s|t|u}-shift in DXC command-line. That is a very important option when you compile HLSL to SPIRV HLSL register and Vulkan binding.

Finally, I inverted packMatricesInRowMajor option to fix the issue.

Resolve #37
Resolve #41

@Jorgemagic
Copy link
Contributor Author

Hi @gongminmin
The compilation failed by timeout. Can you re-launch the CI?

@gongminmin
Copy link
Contributor

I restart the CI but it's still fail. The problem is you need to update the expected test results under Source\Tests\Data\Expected to reflect your changes to -Zpr.

@gongminmin gongminmin merged commit b514328 into microsoft:master Sep 25, 2019
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.

Options::packMatricesInRowMajor is inverted Vulkan descriptor shifting
2 participants