D3D11 cubemap texture, loadable from six face images or a single equirectangular panorama.
More...
#include <DirectX11CubemapTexture.hpp>
|
| | DirectX11CubemapTexture (ID3D11Device *device) |
| | ~DirectX11CubemapTexture () override |
| void | Bind (uint32_t slot=0) const override |
| TextureFormat | GetFormat () const override |
| uint32_t | GetHeight () const override |
| TextureType | GetType () const override |
| uint32_t | GetWidth () const override |
| bool | LoadCubemap (const std::array< std::string, 6 > &facePaths) |
| | Loads and uploads 6 face images: +X, -X, +Y, -Y, +Z, -Z.
|
| bool | LoadEquirectangular (const std::string &path, uint32_t faceSize=512) |
| | Loads a single equirectangular panorama and resamples it into 6 cube faces.
|
| bool | LoadFromFile (const std::string &filePath) override |
| | Unused for cubemaps; load via LoadCubemap/LoadEquirectangular instead.
|
| bool | LoadFromMemory (const void *data, uint32_t width, uint32_t height, TextureFormat format) override |
| | Unused for cubemaps; load via LoadCubemap/LoadEquirectangular instead.
|
| void | SetFilter (TextureFilter filter) override |
| void | SetWrapMode (TextureWrapMode wrapMode) override |
| void | Unbind () const override |
| virtual | ~Texture ()=default |
| virtual uint64_t | GetImGuiTextureID () const |
| virtual float | GetLodBias () const |
| virtual void | SetLodBias (float bias) |
D3D11 cubemap texture, loadable from six face images or a single equirectangular panorama.
Definition at line 17 of file DirectX11CubemapTexture.hpp.
◆ DirectX11CubemapTexture()
| Sleak::RenderEngine::DirectX11CubemapTexture::DirectX11CubemapTexture |
( |
ID3D11Device * | device | ) |
|
◆ ~DirectX11CubemapTexture()
| Sleak::RenderEngine::DirectX11CubemapTexture::~DirectX11CubemapTexture |
( |
| ) |
|
|
override |
◆ Bind()
| void Sleak::RenderEngine::DirectX11CubemapTexture::Bind |
( |
uint32_t | slot = 0 | ) |
const |
|
overridevirtual |
◆ GetFormat()
| TextureFormat Sleak::RenderEngine::DirectX11CubemapTexture::GetFormat |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetHeight()
| uint32_t Sleak::RenderEngine::DirectX11CubemapTexture::GetHeight |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetType()
| TextureType Sleak::RenderEngine::DirectX11CubemapTexture::GetType |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetWidth()
| uint32_t Sleak::RenderEngine::DirectX11CubemapTexture::GetWidth |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ LoadCubemap()
| bool Sleak::RenderEngine::DirectX11CubemapTexture::LoadCubemap |
( |
const std::array< std::string, 6 > & | facePaths | ) |
|
Loads and uploads 6 face images: +X, -X, +Y, -Y, +Z, -Z.
◆ LoadEquirectangular()
| bool Sleak::RenderEngine::DirectX11CubemapTexture::LoadEquirectangular |
( |
const std::string & | path, |
|
|
uint32_t | faceSize = 512 ) |
Loads a single equirectangular panorama and resamples it into 6 cube faces.
◆ LoadFromFile()
| bool Sleak::RenderEngine::DirectX11CubemapTexture::LoadFromFile |
( |
const std::string & | filePath | ) |
|
|
overridevirtual |
Unused for cubemaps; load via LoadCubemap/LoadEquirectangular instead.
Implements Sleak::Texture.
◆ LoadFromMemory()
| bool Sleak::RenderEngine::DirectX11CubemapTexture::LoadFromMemory |
( |
const void * | data, |
|
|
uint32_t | width, |
|
|
uint32_t | height, |
|
|
TextureFormat | format ) |
|
overridevirtual |
Unused for cubemaps; load via LoadCubemap/LoadEquirectangular instead.
Implements Sleak::Texture.
◆ SetFilter()
| void Sleak::RenderEngine::DirectX11CubemapTexture::SetFilter |
( |
TextureFilter | filter | ) |
|
|
overridevirtual |
◆ SetWrapMode()
| void Sleak::RenderEngine::DirectX11CubemapTexture::SetWrapMode |
( |
TextureWrapMode | wrapMode | ) |
|
|
overridevirtual |
◆ Unbind()
| void Sleak::RenderEngine::DirectX11CubemapTexture::Unbind |
( |
| ) |
const |
|
overridevirtual |