glsl: add new build program resource helpers
These will be used by a new nir based glsl varying linker that will add varyings directly to the list before the are packed and we lose the information. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15731>
This commit is contained in:

committed by
Marge Bot

parent
23ea24e11f
commit
43a8454ea8
@@ -24,6 +24,8 @@
|
||||
#ifndef GL_NIR_LINKER_H
|
||||
#define GL_NIR_LINKER_H
|
||||
|
||||
#include "main/glheader.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -59,6 +61,15 @@ bool gl_nir_link_uniforms(const struct gl_constants *consts,
|
||||
void gl_nir_set_uniform_initializers(const struct gl_constants *consts,
|
||||
struct gl_shader_program *prog);
|
||||
|
||||
bool nir_add_packed_var_to_resource_list(const struct gl_constants *consts,
|
||||
struct gl_shader_program *shProg,
|
||||
struct set *resource_set,
|
||||
nir_variable *var,
|
||||
unsigned stage, GLenum type);
|
||||
|
||||
void
|
||||
init_program_resource_list(struct gl_shader_program *prog);
|
||||
|
||||
void nir_build_program_resource_list(const struct gl_constants *consts,
|
||||
struct gl_shader_program *prog,
|
||||
bool rebuild_resourse_list);
|
||||
|
Reference in New Issue
Block a user