summaryrefslogtreecommitdiffstats
path: root/tools/gfx/open-gl/render-gl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-07-08 13:30:17 -0700
committerGitHub <noreply@github.com>2021-07-08 16:30:17 -0400
commit09950676b3f73bb9967aea183d27a30d63098475 (patch)
treeaba3e69b72554b07da1188fd44d5f3ce3d90da26 /tools/gfx/open-gl/render-gl.cpp
parent06c4926ec51ce9548f2dc44ee948a467d588def8 (diff)
Implement gfx inline ray tracing on D3D12. (#1902)
* Update VS projects to 2019. * Empty commit to trigger build * Implement gfx inline ray tracing on D3D12.
Diffstat (limited to 'tools/gfx/open-gl/render-gl.cpp')
-rw-r--r--tools/gfx/open-gl/render-gl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gfx/open-gl/render-gl.cpp b/tools/gfx/open-gl/render-gl.cpp
index 92f8680d7..776806a49 100644
--- a/tools/gfx/open-gl/render-gl.cpp
+++ b/tools/gfx/open-gl/render-gl.cpp
@@ -2502,6 +2502,8 @@ SLANG_NO_THROW Result SLANG_MCALL GLDevice::createTextureView(
viewImpl->m_textureID = resourceImpl->m_handle;
viewImpl->type = ResourceViewImpl::Type::Texture;
viewImpl->m_target = resourceImpl->m_target;
+ viewImpl->m_desc = desc;
+
if (desc.type == IResourceView::Type::ShaderResource)
{
viewImpl->access = GL_READ_ONLY;
@@ -2532,6 +2534,8 @@ SLANG_NO_THROW Result SLANG_MCALL GLDevice::createBufferView(
viewImpl->type = ResourceViewImpl::Type::Buffer;
viewImpl->m_resource = resourceImpl;
viewImpl->m_bufferID = resourceImpl->m_handle;
+ viewImpl->m_desc = desc;
+
returnComPtr(outView, viewImpl);
return SLANG_OK;
}