24#ifndef PXR_IMAGING_HGI_UNIT_TEST_HELPER_H
25#define PXR_IMAGING_HGI_UNIT_TEST_HELPER_H
29#include "pxr/imaging/hgi/hgi.h"
31PXR_NAMESPACE_OPEN_SCOPE
33using HgiUniquePtr = std::unique_ptr<class Hgi>;
35class HgiInitializationTestDriver
39 HgiInitializationTestDriver();
42 ~HgiInitializationTestDriver();
45 Hgi* GetHgi() {
return _hgi.get(); }
51class HgiPipelineCreationTestDriver
55 HgiPipelineCreationTestDriver();
58 ~HgiPipelineCreationTestDriver();
61 bool CreateTestPipeline();
64 Hgi* GetHgi() {
return _hgi.get(); }
67 bool _CreateShaderProgram();
68 void _DestroyShaderProgram();
69 void _CreateVertexBufferDescriptor();
70 bool _CreatePipeline();
71 void _PrintCompileErrors();
81class HgiGfxCmdBfrExecutionTestDriver :
public HgiPipelineCreationTestDriver
85 HgiGfxCmdBfrExecutionTestDriver();
88 ~HgiGfxCmdBfrExecutionTestDriver();
91 bool ExecuteTestGfxCmdBfr();
94 bool WriteToFile(
const std::string& filePath);
99 bool _CreateResourceBuffers();
100 bool _CreateRenderTargets();
112PXR_NAMESPACE_CLOSE_SCOPE
Basic type for a vector of 3 int components.
Hydra Graphics Interface.
Describes the properties of a framebuffer attachment.
Describes the attributes of a vertex buffer.