Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Grindstone::Renderer::MetaSize Struct Reference

Public Types

enum class  ImageSizeInfo : uint32_t {
  Multiply = 1u << 29u , ViewportRelative = 1u << 30u , SwapchainRelative = 1u << 31u , MetaBits = Multiply | ViewportRelative | SwapchainRelative ,
  SizeBits = ~static_cast<uint32_t>(MetaBits)
}

Public Member Functions

bool operator== (const MetaSize &other) const
 operator uint32_t () const
bool IsSwapchainRelative () const
bool IsViewportRelative () const
bool IsMultiply () const
bool IsDivide () const
uint32_t Resolve (uint32_t viewportResolution, uint32_t swapchainResolution) const

Static Public Member Functions

static const MetaSize Pixels (uint32_t x)
static const MetaSize Viewport ()
static const MetaSize Swapchain ()
static MetaSize MultiplyViewport (uint32_t x)
static MetaSize MultiplySwapchain (uint32_t x)
static MetaSize DivideViewport (uint32_t x)
static MetaSize DivideSwapchain (uint32_t x)

Public Attributes

uint32_t value

The documentation for this struct was generated from the following file: