diff options
| author | Yong He <yonghe@outlook.com> | 2022-01-10 13:30:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-10 13:30:41 -0800 |
| commit | ad9abad220df96d2155f6825f158b7f6327b7ea8 (patch) | |
| tree | 12b146961910c1b4aa6a68b3063ec3e68d2ce23d /examples | |
| parent | 0ac19741937e007ebb45791f53d413d21055feda (diff) | |
Various fixes to gfx. (#2074)
* Various gfx fixes.
* Fixup.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/gpu-printing/main.cpp | 2 | ||||
| -rw-r--r-- | examples/shader-object/main.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/gpu-printing/main.cpp b/examples/gpu-printing/main.cpp index cf376236d..31313830f 100644 --- a/examples/gpu-printing/main.cpp +++ b/examples/gpu-printing/main.cpp @@ -108,7 +108,7 @@ Result execute() printBufferDesc.defaultState = ResourceState::UnorderedAccess; printBufferDesc.allowedStates = ResourceStateSet( ResourceState::CopySource, ResourceState::CopyDestination, ResourceState::UnorderedAccess); - printBufferDesc.cpuAccessFlags = MemoryType::CpuRead; // | Resource::AccessFlag::Write; + printBufferDesc.memoryType = MemoryType::ReadBack; auto printBuffer = gDevice->createBufferResource(printBufferDesc); IResourceView::Desc printBufferViewDesc; diff --git a/examples/shader-object/main.cpp b/examples/shader-object/main.cpp index 017aba3b7..58c6abbfd 100644 --- a/examples/shader-object/main.cpp +++ b/examples/shader-object/main.cpp @@ -170,7 +170,7 @@ int main() ResourceState::CopyDestination, ResourceState::CopySource); bufferDesc.defaultState = ResourceState::UnorderedAccess; - bufferDesc.cpuAccessFlags = MemoryType::GpuOnly; + bufferDesc.memoryType = MemoryType::DeviceLocal; ComPtr<gfx::IBufferResource> numbersBuffer; SLANG_RETURN_ON_FAIL(device->createBufferResource( |
