blender/intern/cycles/hydra
Patrick Mours 34f94a02f3 Fix use of OpenGL interop breaking in Hydra viewports that do not support it
Rendering directly to a resource using OpenGL interop and Hgi
doesn't work in Houdini, since it never uses the resulting resource
(it does not call `HdRenderBuffer::GetResource`). But since doing
that simultaneously disables mapping (`HdRenderBuffer::Map` is
not implemented then), nothing was displayed. To fix this, keep
track of whether a Hydra viewport does support displaying a Hgi
resource directly, by checking whether
`HdRenderBuffer::GetResource` is ever called and only enable use
of OpenGL interop if that is the case.

Differential Revision: https://developer.blender.org/D15090
2022-06-03 18:56:30 +02:00
..
resources Cycles: refactor Hydra render delegate building 2022-04-29 19:03:06 +02:00
attribute.cpp
attribute.h
camera.cpp Cleanup: fix various Cycles build warnings with non-default options 2022-04-29 17:39:04 +02:00
camera.h Cycles: Add support for "stageMetersPerUnit" Hydra render setting 2022-04-13 12:24:21 +02:00
CMakeLists.txt Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
config.h Cycles: Use USD dependencies when building Hydra render delegate 2022-04-05 17:23:52 +02:00
curves.cpp
curves.h Cleanup: clang-format 2022-03-24 11:01:12 +01:00
display_driver.cpp Fix use of OpenGL interop breaking in Hydra viewports that do not support it 2022-06-03 18:56:30 +02:00
display_driver.h Fix use of OpenGL interop breaking in Hydra viewports that do not support it 2022-06-03 18:56:30 +02:00
field.cpp Cycles: Use USD dependencies when building Hydra render delegate 2022-04-05 17:23:52 +02:00
field.h
file_reader.cpp Cycles: Hydra fixes for stageMetersPerUnit and OpenGL context on Windows 2022-04-29 19:19:39 +02:00
file_reader.h Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
geometry.h
geometry.inl Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
instancer.cpp
instancer.h
light.cpp Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
light.h
material.cpp Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
material.h Cycles: Use USD dependencies when building Hydra render delegate 2022-04-05 17:23:52 +02:00
mesh.cpp
mesh.h Cleanup: clang-format 2022-03-24 11:01:12 +01:00
node_util.cpp Cleanup: clang-format 2022-04-07 14:34:51 +10:00
node_util.h Cleanup: clang-format 2022-03-24 11:01:12 +01:00
output_driver.cpp Fix use of OpenGL interop breaking in Hydra viewports that do not support it 2022-06-03 18:56:30 +02:00
output_driver.h
plugin.cpp Cycles: various Linux build fixes related to Hydra render delegate 2022-04-07 19:52:53 +02:00
plugin.h
plugInfo.json
pointcloud.cpp
pointcloud.h Cleanup: clang-format 2022-03-24 11:01:12 +01:00
render_buffer.cpp Fix use of OpenGL interop breaking in Hydra viewports that do not support it 2022-06-03 18:56:30 +02:00
render_buffer.h Fix use of OpenGL interop breaking in Hydra viewports that do not support it 2022-06-03 18:56:30 +02:00
render_delegate.cpp Cycles: Hydra fixes for stageMetersPerUnit and OpenGL context on Windows 2022-04-29 19:19:39 +02:00
render_delegate.h Cycles: Hydra fixes for stageMetersPerUnit and OpenGL context on Windows 2022-04-29 19:19:39 +02:00
render_pass.cpp Cycles: make Hydra display driver optional, for USD without OpenGL 2022-04-29 18:08:41 +02:00
render_pass.h
session.cpp Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
session.h Cycles: add USD as a file format for Cycles standalone rendering 2022-04-29 19:19:19 +02:00
volume.cpp
volume.h Cleanup: clang-format 2022-03-24 11:01:12 +01:00