Definition at line 307 of file mxvk_nanobind.cpp.
◆ PythonTexture() [1/2]
| anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::PythonTexture |
( |
const mxvk::VulkanContext & | context, |
|
|
const std::string & | path ) |
|
inline |
Definition at line 309 of file mxvk_nanobind.cpp.
void create_texture_from_png(const VulkanContext &context, const std::string &path, TextureResource &texture, VkFormat format=VK_FORMAT_R8G8B8A8_UNORM)
Load a PNG and upload it into a sampled 2D texture.
VkDevice device
Logical device used to create and destroy resources.
◆ ~PythonTexture()
| anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::~PythonTexture |
( |
| ) |
|
|
inline |
◆ PythonTexture() [2/2]
| anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::PythonTexture |
( |
const PythonTexture & | | ) |
|
|
delete |
◆ close()
| void anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::close |
( |
| ) |
|
|
inline |
Definition at line 315 of file mxvk_nanobind.cpp.
315 {
316 if (device != VK_NULL_HANDLE && resource.image != VK_NULL_HANDLE)
318 device = VK_NULL_HANDLE;
319 }
void destroy_texture(VkDevice device, TextureResource &texture)
Destroy every Vulkan handle owned by a TextureResource.
◆ height()
| uint32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::height |
( |
| ) |
const |
|
inlinenodiscard |
◆ operator=()
◆ valid()
| bool anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::valid |
( |
| ) |
const |
|
inlinenodiscard |
◆ width()
| uint32_t anonymous_namespace{mxvk_nanobind.cpp}::PythonTexture::width |
( |
| ) |
const |
|
inlinenodiscard |
The documentation for this class was generated from the following file: