diff options
Diffstat (limited to 'video/out/opengl/ra.h')
-rw-r--r-- | video/out/opengl/ra.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/ra.h b/video/out/opengl/ra.h index 866039a828..bd7a904860 100644 --- a/video/out/opengl/ra.h +++ b/video/out/opengl/ra.h @@ -76,6 +76,13 @@ struct ra_tex_params { void *initial_data; }; +// Conflates the following typical GPU API concepts: +// - texture itself +// - sampler state +// - staging buffers for texture upload +// - framebuffer objects +// - wrappers for swapchain framebuffers +// - synchronization needed for upload/rendering/etc. struct ra_tex { // All fields are read-only after creation. struct ra_tex_params params; @@ -149,6 +156,7 @@ const struct ra_format *ra_find_uint_format(struct ra *ra, int bytes_per_component, int n_components); const struct ra_format *ra_find_float16_format(struct ra *ra, int n_components); +const struct ra_format *ra_find_named_format(struct ra *ra, const char *name); struct ra_imgfmt_desc { int num_planes; |