33#ifndef DVD_TEXTURE_DESCRIPTOR_INL_
34#define DVD_TEXTURE_DESCRIPTOR_INL_
125 descriptor._usageMask |= (1u <<
to_base( usage ));
130 descriptor._usageMask &= ~(1u <<
to_base( usage ));
135 return descriptor._usageMask & (1u <<
to_base( usage ));
144 descriptor._layerCount,
145 descriptor._mipBaseLevel,
146 to_base( descriptor._mipMappingState ),
147 descriptor._msaaSamples,
148 to_U32( descriptor._dataType ),
149 to_U32( descriptor._baseFormat ),
150 to_U32( descriptor._packing ),
151 to_U32( descriptor._texType ),
152 descriptor._usageMask,
153 descriptor._textureOptions._alphaChannelTransparency,
154 descriptor._textureOptions._fastCompression,
155 descriptor._textureOptions._isNormalMap,
156 descriptor._textureOptions._mipFilter,
157 descriptor._textureOptions._skipMipMaps,
158 descriptor._textureOptions._outputFormat,
159 descriptor._textureOptions._outputSRGB,
160 descriptor._textureOptions._useDDSCache
void Hash_combine(size_t &seed, const T &v, const Rest &... rest) noexcept
a la Boost
Handle console commands that start with a forward slash.
bool Is1DTexture(TextureType texType) noexcept
constexpr U32 to_U32(const T value)
bool IsNormalizedTexture(GFXImagePacking packing) noexcept
bool IsCubeTexture(TextureType texType) noexcept
bool IsArrayTexture(TextureType texType) noexcept
bool Is3DTexture(TextureType texType) noexcept
size_t GetHash(const PropertyDescriptor< T > &descriptor) noexcept
void AddImageUsageFlag(PropertyDescriptor< Texture > &descriptor, const ImageUsage usage) noexcept
bool Is2DTexture(TextureType texType) noexcept
bool IsDepthTexture(GFXImagePacking packing) noexcept
void RemoveImageUsageFlag(PropertyDescriptor< Texture > &descriptor, const ImageUsage usage) noexcept
U8 NumChannels(GFXImageFormat format) noexcept
bool HasUsageFlagSet(const PropertyDescriptor< Texture > &descriptor, const ImageUsage usage) noexcept
bool SupportsZOffsetTexture(TextureType texType) noexcept
bool IsBGRTexture(GFXImageFormat format) noexcept
constexpr auto to_base(const Type value) -> Type