forked from blender/blender
GPU: Shader Create Info GLSL-C++ stubs #3
@ -129,9 +129,9 @@ namespace blender::gpu::shader {
|
||||
.uniform_buf(slot, #type_name, #name, Frequency::freq)
|
||||
|
||||
# define STORAGE_BUF(slot, qualifiers, type_name, name) \
|
||||
.storage_buf(slot, Qualifier::qualifiers, #type_name, #name)
|
||||
.storage_buf(slot, Qualifier::qualifiers, STRINGIFY(type_name), #name)
|
||||
# define STORAGE_BUF_FREQ(slot, qualifiers, type_name, name, freq) \
|
||||
.storage_buf(slot, Qualifier::qualifiers, #type_name, #name, Frequency::freq)
|
||||
.storage_buf(slot, Qualifier::qualifiers, STRINGIFY(type_name), #name, Frequency::freq)
|
||||
|
||||
# define SAMPLER(slot, type, name) .sampler(slot, ImageType::type, #name)
|
||||
# define SAMPLER_FREQ(slot, type, name, freq) \
|
||||
@ -242,11 +242,11 @@ namespace blender::gpu::shader {
|
||||
# define PUSH_CONSTANT(type, name) const type name = {};
|
||||
# define PUSH_CONSTANT_ARRAY(type, name, array_size) const type name[array_size] = {};
|
||||
|
||||
# define UNIFORM_BUF(slot, type_name, name) const type_name name;
|
||||
# define UNIFORM_BUF_FREQ(slot, type_name, name, freq) const type_name name;
|
||||
# define UNIFORM_BUF(slot, type_name, name) const type_name name = {};
|
||||
# define UNIFORM_BUF_FREQ(slot, type_name, name, freq) const type_name name = {};
|
||||
|
||||
# define STORAGE_BUF(slot, qualifiers, type_name, name) qualifiers type_name name;
|
||||
# define STORAGE_BUF_FREQ(slot, qualifiers, type_name, name, freq) qualifiers type_name name;
|
||||
# define STORAGE_BUF(slot, qualifiers, type_name, name) qualifiers type_name name = {};
|
||||
# define STORAGE_BUF_FREQ(slot, qualifiers, type_name, name, freq) qualifiers type_name name = {};
|
||||
|
||||
# define SAMPLER(slot, type, name) _##type(sampler) name;
|
||||
# define SAMPLER_FREQ(slot, type, name, freq) _##type(sampler) name;
|
||||
|
Loading…
Reference in New Issue
Block a user