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

Migrate examples #4920

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Conversation

kaizhangNV
Copy link
Contributor

Migrate cpu-hello-world to new slang API and add it to slang-unit-test
Add 'shader-object' to slang-unit-test
Convert ray-tracing example into slang-unit-test

Fix bugs in record-replay layer:

  • Wrong decode type in array size in specialize() call.
  • Wrong decode type in 'getEntryPointHostCallable'.
  • Mistakes in computing the output buffer size.
  • When capture entrypoint, we should increase the reference count
    for the allocated entrypoint recorder object, because that is
    allocated by record layer, it should be owned by the layer, user
    should not be able to free it.

Migrate cpu-hello-world to new slang API, and also convert this example
as one of the unit test.

Fix some bugs in replayer:
  - Wrong decode type in 'getEntryPointHostCallable'.
  - Mistakes in computing the output buffer size.

Improve json consumer on the prelude text.
Convert 'shader-object' to record-replay test and add it to
slang-unit-test group.

Fix some replay bugs:
 - Wrong decode type in array size in specialize() call.
Convert ray-tracing example into unit-test

Add ray-tracing into slang-unit-test

Fix the memory management issue in the record layer
 - When capture entrypoint, we should increase the reference count
   for the allocated entrypoint recorder object, because that is
   allocated by record layer, it should be owned by the layer, user
   should not be able to free it.

In our test, we add a "callIdx" string at beginning of the hash-code
string, as there could be more than one modules in the example, so they
could call 'getEntryPointHash' multiple times, in order for the test
can identify them, add "callIdx: <number>" as the key word.
@kaizhangNV kaizhangNV marked this pull request as draft August 27, 2024 04:33
@kaizhangNV kaizhangNV added the pr: non-breaking PRs without breaking changes label Aug 27, 2024
@kaizhangNV kaizhangNV marked this pull request as ready for review August 27, 2024 16:01
@kaizhangNV
Copy link
Contributor Author

PR for issue #4570.

@kaizhangNV kaizhangNV merged commit 59c23b9 into shader-slang:master Aug 27, 2024
12 of 13 checks passed
@kaizhangNV kaizhangNV deleted the migrate-examples branch August 27, 2024 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants