Unravel Engine C++ Reference
Loading...
Searching...
No Matches
gfx::texture Struct Reference

#include <texture.h>

Inheritance diagram for gfx::texture:
gfx::handle_impl< texture, texture_handle >

Public Member Functions

 texture ()=default
 
 texture (const char *_path, std::uint64_t _flags=BGFX_TEXTURE_NONE|BGFX_SAMPLER_NONE, std::uint8_t _skip=0, texture_info *_info=nullptr)
 
 texture (std::uint16_t _width, std::uint16_t _height, bool _hasMips, std::uint16_t _numLayers, texture_format _format, std::uint64_t _flags=BGFX_TEXTURE_NONE|BGFX_SAMPLER_NONE, const memory_view *_mem=nullptr)
 
 texture (std::uint16_t _width, std::uint16_t _height, std::uint16_t _depth, bool _hasMips, texture_format _format, std::uint64_t _flags=BGFX_TEXTURE_NONE|BGFX_SAMPLER_NONE, const memory_view *_mem=nullptr)
 
 texture (std::uint16_t _size, bool _hasMips, std::uint16_t _numLayers, texture_format _format, std::uint64_t _flags=BGFX_TEXTURE_NONE|BGFX_SAMPLER_NONE, const memory_view *_mem=nullptr)
 
auto get_size () const -> usize32_t
 
auto is_render_target () const -> bool
 
- Public Member Functions inherited from gfx::handle_impl< texture, texture_handle >
 ~handle_impl ()
 
void dispose ()
 
auto is_valid () const -> bool
 
auto native_handle () const -> texture_handle
 

Public Attributes

texture_info info {}
 Texture detail info.
 
std::uint64_t flags = BGFX_TEXTURE_NONE
 Creation flags.
 

Additional Inherited Members

- Public Types inherited from gfx::handle_impl< texture, texture_handle >
using ptr
 
using uptr
 
using weak_ptr
 
using handle_type_t
 
using base_type
 
- Static Public Member Functions inherited from gfx::handle_impl< texture, texture_handle >
static auto invalid_handle () -> texture_handle
 
- Protected Attributes inherited from gfx::handle_impl< texture, texture_handle >
texture_handle handle_
 

Detailed Description

Definition at line 9 of file texture.h.

Constructor & Destructor Documentation

◆ texture() [1/5]

gfx::texture::texture ( )
default

◆ texture() [2/5]

gfx::texture::texture ( const char * _path,
std::uint64_t _flags = BGFX_TEXTURE_NONE | BGFX_SAMPLER_NONE,
std::uint8_t _skip = 0,
texture_info * _info = nullptr )

Definition at line 6 of file texture.cpp.

◆ texture() [3/5]

gfx::texture::texture ( std::uint16_t _width,
std::uint16_t _height,
bool _hasMips,
std::uint16_t _numLayers,
texture_format _format,
std::uint64_t _flags = BGFX_TEXTURE_NONE | BGFX_SAMPLER_NONE,
const memory_view * _mem = nullptr )

Definition at line 21 of file texture.cpp.

◆ texture() [4/5]

gfx::texture::texture ( std::uint16_t _width,
std::uint16_t _height,
std::uint16_t _depth,
bool _hasMips,
texture_format _format,
std::uint64_t _flags = BGFX_TEXTURE_NONE | BGFX_SAMPLER_NONE,
const memory_view * _mem = nullptr )

Definition at line 37 of file texture.cpp.

◆ texture() [5/5]

gfx::texture::texture ( std::uint16_t _size,
bool _hasMips,
std::uint16_t _numLayers,
texture_format _format,
std::uint64_t _flags = BGFX_TEXTURE_NONE | BGFX_SAMPLER_NONE,
const memory_view * _mem = nullptr )

Definition at line 53 of file texture.cpp.

Member Function Documentation

◆ get_size()

auto gfx::texture::get_size ( ) const -> usize32_t

Definition at line 68 of file texture.cpp.

◆ is_render_target()

auto gfx::texture::is_render_target ( ) const -> bool

Definition at line 73 of file texture.cpp.

Member Data Documentation

◆ flags

std::uint64_t gfx::texture::flags = BGFX_TEXTURE_NONE

Creation flags.

Definition at line 97 of file texture.h.

◆ info

texture_info gfx::texture::info {}

Texture detail info.

Definition at line 95 of file texture.h.


The documentation for this struct was generated from the following files: