Implement SPV_KHR_ray_query generation#2834
Conversation
from dxr 1.1 rayquery hlsl
|
@jiaolu Please check the test failures. |
|
❌ Build DirectXShaderCompiler 1.0.3019 failed (commit f94c1c6d05 by @jiaolu) |
|
|
run |
|
✅ Build DirectXShaderCompiler 1.0.3030 completed (commit 9248570828 by @jiaolu) |
|
|
@ehsannas, Any comment on this review? |
|
Sorry, I'm falling behind in code reviews. I'll definitely review this as soon as I can. |
ehsannas
left a comment
There was a problem hiding this comment.
Thanks for your contribution. In general this is a lot of good work. Just a few comments:
-
Please run
clang-formaton the files you have changed. (if you're using VS or VSCode, you can install clang-format or ClangFormat extensions that make it easy to do this). -
The .rst file (the documentation file) is not formatted correctly, so github can't render it.
See your file vs original file -
Have you verified that the generated SPIR-V works on hardware? I don't have access to a device that can perform these operations.
-
This extension is currently provisional. the spec says
This extension is provisional and should not be used in production applications. The functionality may change in ways that break backwards compatibility between revisions, and before final release.
Do you recommend waiting for the extension to become final first?
We'd like to have this available before final so that people can experiment with it. |
@dgkoch Sounds good to me. @jiaolu Please add the following warning to the beginning of the two functions emitWarning("SPV_KHR_ray_query is currently a provisional extension and might
change in ways that are not backwards compatible", expr->getExprLoc()); |
|
code updated. |
|
✅ Build DirectXShaderCompiler 1.0.3115 completed (commit 900bfd9895 by @jiaolu) |
|
yes, i have tested dxc output of rayquery spv in our internal setup environment. |
|
@ehsannas, Any more comments about this review? |
|
Thanks @jiaolu . I have reverted all the changes to HlslTypes.cpp because it was just spacing changes and it was distracting from the main goal of this PR (sadly some files within DXC currently don't adhere to clang-format). The formatting of the doc file was also still incorrect which resulted in Github not being able to render the file correctly. I've fixed those too. |
|
@ehsannas , Thanks for the fix |
from dxr 1.1 rayquery hlsl