#include <vertex_buffer.h>
|
Public Types inherited from gfx::handle_impl< vertex_buffer, vertex_buffer_handle > |
| using | ptr |
| |
| using | uptr |
| |
| using | weak_ptr |
| |
| using | handle_type_t |
| |
| using | base_type |
| |
Static Public Member Functions inherited from gfx::handle_impl< vertex_buffer, vertex_buffer_handle > |
| static auto | invalid_handle () -> vertex_buffer_handle |
| |
Protected Member Functions inherited from gfx::handle_impl< vertex_buffer, vertex_buffer_handle > |
| auto | fallback_handle () const -> vertex_buffer_handle |
| |
| auto | get_fallback_handle () const -> vertex_buffer_handle |
| |
| void | make_evictable (std::uint64_t gpu_bytes, std::function< bool(vertex_buffer &)> restore_fn, evict_class cls=evict_class::evictable) |
| |
| void | make_evictable_deferred (std::uint64_t gpu_bytes, std::function< bool(vertex_buffer &)> restore_fn, evict_class cls=evict_class::evictable) |
| |
Protected Attributes inherited from gfx::handle_impl< vertex_buffer, vertex_buffer_handle > |
| vertex_buffer_handle | handle_ |
| |
| std::function< bool(vertex_buffer &)> | restore_fn_ |
| |
| std::uint64_t | gpu_size_ |
| |
| std::uint64_t | last_use_frame_ {0} |
| | Frame the resource was last used on (heuristic, written from touch).
|
| |
| std::uint64_t | use_count_ {0} |
| | Number of times the resource was used (heuristic, written from touch).
|
| |
| evict_state | evict_state_ {evict_state::resident} |
| | Current residency state. Written by the owning resource during evict/restore.
|
| |
| evict_class | evict_class_ {evict_class::non_evictable} |
| | Eligibility class. Set once when the resource opts into eviction.
|
| |
Definition at line 7 of file vertex_buffer.h.
◆ vertex_buffer() [1/2]
| gfx::vertex_buffer::vertex_buffer |
( |
| ) |
|
|
default |
◆ vertex_buffer() [2/2]
| gfx::vertex_buffer::vertex_buffer |
( |
const memory_view * | _mem, |
|
|
const vertex_layout & | _decl, |
|
|
std::uint16_t | _flags = BGFX_BUFFER_NONE ) |
The documentation for this struct was generated from the following files: