7 #ifndef PXR_IMAGING_HGI_UNIT_TEST_HELPER_H 8 #define PXR_IMAGING_HGI_UNIT_TEST_HELPER_H 12 #include "pxr/imaging/hgi/hgi.h" 14 PXR_NAMESPACE_OPEN_SCOPE
16 using HgiUniquePtr = std::unique_ptr<class Hgi>;
18 class HgiInitializationTestDriver
22 HgiInitializationTestDriver();
25 ~HgiInitializationTestDriver();
28 Hgi* GetHgi() {
return _hgi.get(); }
34 class HgiPipelineCreationTestDriver
38 HgiPipelineCreationTestDriver();
41 ~HgiPipelineCreationTestDriver();
44 bool CreateTestPipeline();
47 Hgi* GetHgi() {
return _hgi.get(); }
50 bool _CreateShaderProgram();
51 void _DestroyShaderProgram();
52 void _CreateVertexBufferDescriptor();
53 bool _CreatePipeline();
54 void _PrintCompileErrors();
64 class HgiGfxCmdBfrExecutionTestDriver :
public HgiPipelineCreationTestDriver
68 HgiGfxCmdBfrExecutionTestDriver();
71 ~HgiGfxCmdBfrExecutionTestDriver();
74 bool ExecuteTestGfxCmdBfr();
77 bool WriteToFile(
const std::string& filePath);
82 bool _CreateResourceBuffers();
83 bool _CreateRenderTargets();
88 HgiTextureHandle _colorTarget;
91 HgiTextureHandle _depthTarget;
95 PXR_NAMESPACE_CLOSE_SCOPE
97 #endif // PXR_IMAGING_HGI_UNIT_TEST_HELPER_H Describes the properties of a framebuffer attachment.
Basic type for a vector of 3 int components.
Hydra Graphics Interface.
Describes the attributes of a vertex buffer.