diff options
| author | Yong He <yonghe@outlook.com> | 2021-07-09 06:12:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-09 09:12:34 -0400 |
| commit | 09a251e0f3a31c826eaa91eef64b04eb01c4393a (patch) | |
| tree | d6a02b84527d581438aa93690995ac07f42b89ed /examples/ray-tracing/main.cpp | |
| parent | aba2731f0427a04a119a59567e6715ba4034920a (diff) | |
[gfx] Inline raytracing fixes in response to code review. (#1905)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'examples/ray-tracing/main.cpp')
| -rw-r--r-- | examples/ray-tracing/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ray-tracing/main.cpp b/examples/ray-tracing/main.cpp index ffeb4b056..bb02e157a 100644 --- a/examples/ray-tracing/main.cpp +++ b/examples/ray-tracing/main.cpp @@ -324,7 +324,7 @@ Slang::Result initialize() IBufferResource::Desc transformBufferDesc; transformBufferDesc.type = IResource::Type::Buffer; - transformBufferDesc.sizeInBytes = sizeof(float) * 16; + transformBufferDesc.sizeInBytes = sizeof(float) * 12; transformBufferDesc.defaultState = ResourceState::ShaderResource; float transformData[12] = { 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f}; |
