I am trying to create a simple demo app with Hgi and GLFW.
I looked at the file pxr\imaging\hgi\unitTestHelper.cpp as an example, then I ported the relevant functions to my GLFW app.
But this file shows how to render to a texture:
_colorTarget = _hgi->CreateTexture(desc);
I need to render directly to the frame buffer.
In my demo app, I added the following code to see if I can get to clear the background to a specific color, but it doesn’t show that color:
_colorAtt.clearValue = GfVec4f(0.0f, 1.0f, 0.0f, 1.0f);
Anybody has some code sample (or even pseudo code) on how to achieve that?