Texture object.
More...
#include <VulkanRenderCmdSink.h>
|
enum | Parameter {
kBorderColor,
kLodBias,
kBaseLevel,
kCompareFunc,
kCompareMode,
kMinLod,
kMaxLod,
kMaxLevel,
kWrapR,
kMinFilter,
kMagFilter,
kWrapS,
kWrapT
} |
|
enum | ParamValue {
kLinear,
kNearest,
kNearestMipmapLinear,
kLinearMipmapLinear,
kLinearMipmapNearest,
kLessEqual,
kCompareRefToTexture,
kClampToEdge,
kRepeat
} |
|
|
void | Store (unsigned int width, unsigned int height, const void *data, PixelFormat format, int mipmapLevel=0, size_t dataSize=0) |
| Store texture data. More...
|
|
void | Store (unsigned int width, unsigned int height, unsigned int depth, const void *data, PixelFormat format) |
| Store 3D texture data. More...
|
|
void | Store (unsigned int offsetX, unsigned int offsetY, unsigned int width, unsigned int height, const void *data, PixelFormat format, int mipmapLevel=0, size_t dataSize=0) |
| Updates a portion of the image. More...
|
|
void | GenerateMipmaps () |
|
void | SetParameter (Parameter param, ParamValue value) |
|
void | SetParameter (Parameter param, int value) |
|
unsigned int | GetWidth () |
|
unsigned int | GetHeight () |
|
unsigned int | GetDepth () |
|
Enumerator |
---|
kBorderColor |
|
kLodBias |
|
kBaseLevel |
|
kCompareFunc |
|
kCompareMode |
|
kMinLod |
|
kMaxLod |
|
kMaxLevel |
|
kWrapR |
|
kMinFilter |
|
kMagFilter |
|
kWrapS |
|
kWrapT |
|
Enumerator |
---|
kLinear |
|
kNearest |
|
kNearestMipmapLinear |
|
kLinearMipmapLinear |
|
kLinearMipmapNearest |
|
kLessEqual |
|
kCompareRefToTexture |
|
kClampToEdge |
|
kRepeat |
|
void molecular::gfx::VulkanRenderCmdSink::Texture::GenerateMipmaps |
( |
| ) |
|
|
inline |
unsigned int molecular::gfx::VulkanRenderCmdSink::Texture::GetDepth |
( |
| ) |
|
|
inline |
unsigned int molecular::gfx::VulkanRenderCmdSink::Texture::GetHeight |
( |
| ) |
|
|
inline |
unsigned int molecular::gfx::VulkanRenderCmdSink::Texture::GetWidth |
( |
| ) |
|
|
inline |
void molecular::gfx::VulkanRenderCmdSink::Texture::SetParameter |
( |
Parameter |
param, |
|
|
ParamValue |
value |
|
) |
| |
|
inline |
void molecular::gfx::VulkanRenderCmdSink::Texture::SetParameter |
( |
Parameter |
param, |
|
|
int |
value |
|
) |
| |
|
inline |
void molecular::gfx::VulkanRenderCmdSink::Texture::Store |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const void * |
data, |
|
|
PixelFormat |
format, |
|
|
int |
mipmapLevel = 0 , |
|
|
size_t |
dataSize = 0 |
|
) |
| |
Store texture data.
- Parameters
-
data | Pointer to the texture data. Can be NULL to allocate but not initialize the texture. |
dataSize | Size of the data block in bytes. Only needed for compressed textures. |
void molecular::gfx::VulkanRenderCmdSink::Texture::Store |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
unsigned int |
depth, |
|
|
const void * |
data, |
|
|
PixelFormat |
format |
|
) |
| |
void molecular::gfx::VulkanRenderCmdSink::Texture::Store |
( |
unsigned int |
offsetX, |
|
|
unsigned int |
offsetY, |
|
|
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
const void * |
data, |
|
|
PixelFormat |
format, |
|
|
int |
mipmapLevel = 0 , |
|
|
size_t |
dataSize = 0 |
|
) |
| |
Updates a portion of the image.
The documentation for this class was generated from the following files: