Loading...
Searching...
No Matches
graphicsCmdsDesc.h
1//
2// Copyright 2019 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_IMAGING_HGI_GRAPHICS_CMDS_DESC_H
8#define PXR_IMAGING_HGI_GRAPHICS_CMDS_DESC_H
9
10#include "pxr/pxr.h"
11#include "pxr/imaging/hgi/api.h"
12#include "pxr/imaging/hgi/attachmentDesc.h"
13#include "pxr/imaging/hgi/texture.h"
14#include <vector>
15
16PXR_NAMESPACE_OPEN_SCOPE
17
18
45{
47 : colorAttachmentDescs()
48 , depthAttachmentDesc()
49 , colorTextures()
50 , colorResolveTextures()
51 , depthTexture()
52 , depthResolveTexture()
53 {}
54
55 inline bool HasAttachments() const {
56 return !colorAttachmentDescs.empty() || depthTexture;
57 }
58
59 HgiAttachmentDescVector colorAttachmentDescs;
60 HgiAttachmentDesc depthAttachmentDesc;
61
62 HgiTextureHandleVector colorTextures;
63 HgiTextureHandleVector colorResolveTextures;
64
65 HgiTextureHandle depthTexture;
66 HgiTextureHandle depthResolveTexture;
67};
68
69HGI_API
70bool operator==(
71 const HgiGraphicsCmdsDesc& lhs,
72 const HgiGraphicsCmdsDesc& rhs);
73
74HGI_API
75bool operator!=(
76 const HgiGraphicsCmdsDesc& lhs,
77 const HgiGraphicsCmdsDesc& rhs);
78
79HGI_API
80std::ostream& operator<<(
81 std::ostream& out,
82 const HgiGraphicsCmdsDesc& desc);
83
84
85PXR_NAMESPACE_CLOSE_SCOPE
86
87#endif
GF_API std::ostream & operator<<(std::ostream &, const GfBBox3d &)
Output a GfBBox3d using the format [(range) matrix zeroArea].
Describes the properties of a framebuffer attachment.
Describes the properties to begin a HgiGraphicsCmds.