mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 11:40:14 +02:00
Code review to silence some portability warnings (#422)
This commit is contained in:
parent
eb594ad36c
commit
187f6d64a8
@ -61,6 +61,12 @@ namespace DirectX
|
|||||||
HDRColorA() = default;
|
HDRColorA() = default;
|
||||||
HDRColorA(float _r, float _g, float _b, float _a) noexcept : r(_r), g(_g), b(_b), a(_a) {}
|
HDRColorA(float _r, float _g, float _b, float _a) noexcept : r(_r), g(_g), b(_b), a(_a) {}
|
||||||
|
|
||||||
|
HDRColorA(HDRColorA const&) = default;
|
||||||
|
HDRColorA& operator= (const HDRColorA&) = default;
|
||||||
|
|
||||||
|
HDRColorA(HDRColorA&&) = default;
|
||||||
|
HDRColorA& operator= (HDRColorA&&) = default;
|
||||||
|
|
||||||
// binary operators
|
// binary operators
|
||||||
HDRColorA operator + (const HDRColorA& c) const noexcept
|
HDRColorA operator + (const HDRColorA& c) const noexcept
|
||||||
{
|
{
|
||||||
|
@ -339,6 +339,12 @@ namespace DirectX
|
|||||||
LDRColorA() = default;
|
LDRColorA() = default;
|
||||||
LDRColorA(uint8_t _r, uint8_t _g, uint8_t _b, uint8_t _a) noexcept : r(_r), g(_g), b(_b), a(_a) {}
|
LDRColorA(uint8_t _r, uint8_t _g, uint8_t _b, uint8_t _a) noexcept : r(_r), g(_g), b(_b), a(_a) {}
|
||||||
|
|
||||||
|
LDRColorA(LDRColorA const&) = default;
|
||||||
|
LDRColorA& operator= (const LDRColorA&) = default;
|
||||||
|
|
||||||
|
LDRColorA(LDRColorA&&) = default;
|
||||||
|
LDRColorA& operator= (LDRColorA&&) = default;
|
||||||
|
|
||||||
const uint8_t& operator [] (_In_range_(0, 3) size_t uElement) const noexcept
|
const uint8_t& operator [] (_In_range_(0, 3) size_t uElement) const noexcept
|
||||||
{
|
{
|
||||||
switch (uElement)
|
switch (uElement)
|
||||||
@ -449,10 +455,15 @@ namespace
|
|||||||
int r, g, b;
|
int r, g, b;
|
||||||
int pad;
|
int pad;
|
||||||
|
|
||||||
public:
|
|
||||||
INTColor() = default;
|
INTColor() = default;
|
||||||
INTColor(int nr, int ng, int nb) noexcept : r(nr), g(ng), b(nb), pad(0) {}
|
INTColor(int nr, int ng, int nb) noexcept : r(nr), g(ng), b(nb), pad(0) {}
|
||||||
|
|
||||||
|
INTColor(INTColor const&) = default;
|
||||||
|
INTColor& operator= (const INTColor&) = default;
|
||||||
|
|
||||||
|
INTColor(INTColor&&) = default;
|
||||||
|
INTColor& operator= (INTColor&&) = default;
|
||||||
|
|
||||||
INTColor& operator += (_In_ const INTColor& c) noexcept
|
INTColor& operator += (_In_ const INTColor& c) noexcept
|
||||||
{
|
{
|
||||||
r += c.r;
|
r += c.r;
|
||||||
|
@ -17,6 +17,12 @@ namespace DirectX
|
|||||||
public:
|
public:
|
||||||
GPUCompressBC() noexcept;
|
GPUCompressBC() noexcept;
|
||||||
|
|
||||||
|
GPUCompressBC(GPUCompressBC&&) = default;
|
||||||
|
GPUCompressBC& operator= (GPUCompressBC&&) = default;
|
||||||
|
|
||||||
|
GPUCompressBC(GPUCompressBC const&) = delete;
|
||||||
|
GPUCompressBC& operator= (GPUCompressBC const&) = delete;
|
||||||
|
|
||||||
HRESULT Initialize(_In_ ID3D11Device* pDevice);
|
HRESULT Initialize(_In_ ID3D11Device* pDevice);
|
||||||
|
|
||||||
HRESULT Prepare(size_t width, size_t height, uint32_t flags, DXGI_FORMAT format, float alphaWeight);
|
HRESULT Prepare(size_t width, size_t height, uint32_t flags, DXGI_FORMAT format, float alphaWeight);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user