diff options
| author | skallweitNV <64953474+skallweitNV@users.noreply.github.com> | 2024-05-14 00:39:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-13 15:39:49 -0700 |
| commit | 9f23046138629f78995d54a7722ad6749bd84db9 (patch) | |
| tree | 25ac343566f896cae547046ac7e960441874ec00 /examples/autodiff-texture | |
| parent | 04d3dd51125182767d90c318895a6232ec4ee750 (diff) | |
[gfx] specify resource view buffer range in bytes (#4149)
* refactor gfx buffer range to use byte range
* create buffer view with zero struct stride for ClearUnorderedAccessViewUint/Float
* create buffer descriptors on demand
* avoid copying gfx.dll
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'examples/autodiff-texture')
| -rw-r--r-- | examples/autodiff-texture/main.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/examples/autodiff-texture/main.cpp b/examples/autodiff-texture/main.cpp index 7d1f809ee..0578f9d47 100644 --- a/examples/autodiff-texture/main.cpp +++ b/examples/autodiff-texture/main.cpp @@ -246,7 +246,6 @@ struct AutoDiffTexture : public WindowedAppBase { IResourceView::Desc desc = {}; desc.type = IResourceView::Type::UnorderedAccess; - desc.bufferElementSize = 0; return gDevice->createBufferView(buffer, nullptr, desc); } ComPtr<gfx::IResourceView> createUAV(ITextureResource* texture, int level) |
