Skip to content

Commit

Permalink
TextureFormatAttribs: added IsDepthStencil convenience method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Oct 22, 2023
1 parent 874fa54 commit 84f9ec9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Graphics/GraphicsEngine/interface/GraphicsTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -4152,6 +4152,11 @@ struct TextureFormatAttribs
}

constexpr TextureFormatAttribs() noexcept {}

constexpr bool IsDepthStencil() const noexcept
{
return ComponentType == COMPONENT_TYPE_DEPTH || ComponentType == COMPONENT_TYPE_DEPTH_STENCIL;
}
#endif
};
typedef struct TextureFormatAttribs TextureFormatAttribs;
Expand Down

0 comments on commit 84f9ec9

Please sign in to comment.