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"
14PXR_NAMESPACE_OPEN_SCOPE
16using HgiUniquePtr = std::unique_ptr<class Hgi>;
18class HgiInitializationTestDriver
22 HgiInitializationTestDriver();
25 ~HgiInitializationTestDriver();
28 Hgi* GetHgi() {
return _hgi.get(); }
34class 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();
64class HgiGfxCmdBfrExecutionTestDriver :
public HgiPipelineCreationTestDriver
68 HgiGfxCmdBfrExecutionTestDriver();
71 ~HgiGfxCmdBfrExecutionTestDriver();
74 bool ExecuteTestGfxCmdBfr();
77 bool WriteToFile(
const std::string& filePath);
82 bool _CreateResourceBuffers();
83 bool _CreateRenderTargets();
95PXR_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.