nicegraf
|
This module contains optional C++ wrappers for certain nicegraf structures and routines.
Data Structures | |
class | ngf::ngf_handle< T, ObjectManagementFuncs > |
class | ngf::render_encoder |
class | ngf::xfer_encoder |
class | ngf::compute_encoder |
struct | ngf::descriptor_set< S > |
class | ngf::uniform_multibuffer< T > |
Macros | |
#define | NGF_RETURN_IF_ERROR(expr) |
Functions | |
template<class... Args> | |
void | ngf::cmd_bind_resources (ngf_render_encoder enc, const Args &&... args) |
template<class... Args> | |
void | ngf::cmd_bind_resources (ngf_compute_encoder enc, const Args &&... args) |
#define NGF_RETURN_IF_ERROR | ( | expr | ) |
A convenience macro to allow easily propagating nicegraf errors. The provided expression must evaluate to a ngf_error. If the result of the expression is not NGF_ERROR_OK, the value is returned from the calling function. Note: the calling function must also return an ngf_error.
A RAII wrapper for ngf_buffer.
A RAII wrapper for ngf_cmd_buffer.
using ngf::compute_pipeline = ngf_handle<ngf_compute_pipeline, ngf_compute_pipeline_ManagementFuncs> |
A RAII wrapper for ngf_compute_pipeline.
A RAII wrapper for ngf_context.
using ngf::graphics_pipeline = ngf_handle<ngf_graphics_pipeline, ngf_graphics_pipeline_ManagementFuncs> |
A RAII wrapper for ngf_graphics_pipeline.
A RAII wrapper for ngf_image.
A RAII wrapper for ngf_render_target.
A RAII wrapper for ngf_sampler.
A RAII wrapper for ngf_shader_stage.
using ngf::texel_buffer_view = ngf_handle<ngf_texel_buffer_view, ngf_texel_buffer_view_ManagementFuncs> |
A RAII wrapper for ngf_texel_buffer_view.
void ngf::cmd_bind_resources | ( | ngf_compute_encoder | enc, |
const Args &&... | args ) |
A convenience function for binding many resources at once to the shader. Example usage:
void ngf::cmd_bind_resources | ( | ngf_render_encoder | enc, |
const Args &&... | args ) |
A convenience function for binding many resources at once to the shader. Example usage: