RetroArch
|
Public Member Functions | |
Framebuffer (VkDevice device, const VkPhysicalDeviceMemoryProperties &mem_props, const Size2D &max_size, VkFormat format, unsigned max_levels) | |
~Framebuffer () | |
Framebuffer (Framebuffer &&)=delete | |
void | operator= (Framebuffer &&)=delete |
void | set_size (DeferredDisposer &disposer, const Size2D &size, VkFormat format=VK_FORMAT_UNDEFINED) |
const Size2D & | get_size () const |
VkFormat | get_format () const |
VkImage | get_image () const |
VkImageView | get_view () const |
VkFramebuffer | get_framebuffer () const |
VkRenderPass | get_render_pass () const |
void | clear (VkCommandBuffer cmd) |
void | copy (VkCommandBuffer cmd, VkImage image, VkImageLayout layout) |
unsigned | get_levels () const |
void | generate_mips (VkCommandBuffer cmd) |
Private Member Functions | |
void | init (DeferredDisposer *disposer) |
void | init_framebuffer () |
void | init_render_pass () |
Private Attributes | |
const VkPhysicalDeviceMemoryProperties & | memory_properties |
VkDevice | device = VK_NULL_HANDLE |
VkImage | image = VK_NULL_HANDLE |
VkImageView | view = VK_NULL_HANDLE |
VkImageView | fb_view = VK_NULL_HANDLE |
Size2D | size |
VkFormat | format |
unsigned | max_levels |
unsigned | levels = 0 |
VkFramebuffer | framebuffer = VK_NULL_HANDLE |
VkRenderPass | render_pass = VK_NULL_HANDLE |
struct { | |
size_t size = 0 | |
uint32_t type = 0 | |
VkDeviceMemory memory = VK_NULL_HANDLE | |
} | memory |
Framebuffer::Framebuffer | ( | VkDevice | device, |
const VkPhysicalDeviceMemoryProperties & | mem_props, | ||
const Size2D & | max_size, | ||
VkFormat | format, | ||
unsigned | max_levels | ||
) |
Framebuffer::~Framebuffer | ( | ) |
|
delete |
void Framebuffer::clear | ( | VkCommandBuffer | cmd | ) |
void Framebuffer::copy | ( | VkCommandBuffer | cmd, |
VkImage | image, | ||
VkImageLayout | layout | ||
) |
void Framebuffer::generate_mips | ( | VkCommandBuffer | cmd | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
delete |
void Framebuffer::set_size | ( | DeferredDisposer & | disposer, |
const Size2D & | size, | ||
VkFormat | format = VK_FORMAT_UNDEFINED |
||
) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
VkDeviceMemory Framebuffer::memory = VK_NULL_HANDLE |
struct { ... } Framebuffer::memory |
|
private |
|
private |
|
private |
size_t Framebuffer::size = 0 |
uint32_t Framebuffer::type = 0 |
|
private |