Open 3D Engine Atom Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::RHI::SamplePosition Struct Reference

#include <MultisampleState.h>

Public Member Functions

 AZ_TYPE_INFO (SamplePosition, "{8CCB872A-2CC3-4898-AB9E-C12517AC1FB8}")
 
 SamplePosition (uint8_t x, uint8_t y)
 
bool operator== (const SamplePosition &other) const
 
bool operator!= (const SamplePosition &other) const
 

Static Public Member Functions

static void Reflect (ReflectContext *context)
 

Public Attributes

uint8_t m_x = 0
 
uint8_t m_y = 0
 

Detailed Description

Defines a custom sample position when doing Multisample rendering. Sample positions have the origin(0, 0) at the pixel top left. Each of the X and Y coordinates are unsigned values in the range 0 (top / left) to Limits::Pipeline::MultiSampleCustomLocationGridSize - 1 (bottom / right). Values outside this range are invalid. Each increment of these integer values represents 1 / Limits::Pipeline::MultiSampleCustomLocationGridSize of a pixel.


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