[][src]Module nobs_vulkanism_headless::fb

Manages vulkan framebuffers and renderpasses

This module implements builder patterns for vulkan framebuffers and renderpasses. Using Renderpass has the advantage of creating a framebuffer from it, without having to manually create textures for all attachments. Framebuffer implements begin and end commands.

Re-exports

pub use framebuffer::Framebuffer;
pub use renderpass::Renderpass;

Modules

framebuffer
renderpass

Enums

Error

Constants

DEPTH_FORMATS

All supported depth texture formats

Functions

clear_colorf32

Get a vk::ClearValue for colors initialized from 4 floats

clear_colori32

Get a vk::ClearValue for colors initialized from 4 ints

clear_coloru32

Get a vk::ClearValue for colors initialized from 4 uints

clear_depth

Get a vk::ClearValue for depth

clear_depth_stencil

Get a vk::ClearValue for depth and stencil

new_attachment

Returns a builder for an attachment for use in Renderpass

new_dependency

Returns a builder for a subpass depencency for use in Renderpass

new_framebuffer

Returns a builder for a Framebuffer

new_framebuffer_from_pass

Returns a builder for a Framebuffer

new_pass

Returns a builder for a Renderpass

new_subpass

Returns a builder for a subpass for use in Renderpass

select_depth_format

Select the best matching depth format for the specified physical device