|
Blender V5.0
|
Public Member Functions | |
| ShaderSpecializationConst (const char *info_name) | |
| ~ShaderSpecializationConst () | |
| void | init_shader (const char *info_name) |
| void | validate (shader::SpecializationConstants &constants) |
Public Attributes | |
| gpu::Shader * | shader = nullptr |
| StorageBuf * | ssbo = nullptr |
| Vector< int > | data |
| float | float_in |
| uint | uint_in |
| int | int_in |
| bool | bool_in |
| bool | is_graphic = false |
Definition at line 25 of file specialization_constants_test.cc.
|
inline |
Definition at line 37 of file specialization_constants_test.cc.
References bool_in, float_in, GPU_render_begin(), GPU_render_end(), GPU_shader_get_constant(), GPU_shader_get_default_constant_state(), GPU_shader_get_ssbo_binding(), GPU_storagebuf_bind(), init_shader(), int_in, blender::gpu::shader::SpecializationConstants::set_value(), shader, ssbo, uint_in, and validate().
|
inline |
Definition at line 67 of file specialization_constants_test.cc.
References GPU_shader_free(), GPU_shader_unbind(), GPU_storagebuf_free(), shader, and ssbo.
|
inline |
Definition at line 78 of file specialization_constants_test.cc.
References blender::gpu::shader::ShaderCreateInfo::compute_source_, data, GPU_shader_create_from_info_name(), gpu_shader_create_info_get(), GPU_storagebuf_create_ex(), GPU_USAGE_STREAM, blender::StringRefBase::is_empty(), is_graphic, shader, and ssbo.
Referenced by ShaderSpecializationConst().
|
inline |
Definition at line 93 of file specialization_constants_test.cc.
References batch, bool_in, data, EXPECT_EQ(), fb(), float_in, GPU_BARRIER_BUFFER_UPDATE, GPU_batch_create_procedural(), GPU_batch_discard(), GPU_batch_draw_advanced(), GPU_batch_set_shader(), GPU_compute_dispatch(), GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_create(), GPU_framebuffer_default_size(), GPU_framebuffer_free(), GPU_memory_barrier(), GPU_PRIM_POINTS, GPU_storagebuf_read(), int_in, is_graphic, shader, ssbo, and uint_in.
Referenced by ShaderSpecializationConst().
| bool blender::gpu::tests::ShaderSpecializationConst::bool_in |
Definition at line 33 of file specialization_constants_test.cc.
Referenced by ShaderSpecializationConst(), and validate().
| Vector<int> blender::gpu::tests::ShaderSpecializationConst::data |
Definition at line 28 of file specialization_constants_test.cc.
Referenced by init_shader(), and validate().
| float blender::gpu::tests::ShaderSpecializationConst::float_in |
Definition at line 30 of file specialization_constants_test.cc.
Referenced by ShaderSpecializationConst(), and validate().
| int blender::gpu::tests::ShaderSpecializationConst::int_in |
Definition at line 32 of file specialization_constants_test.cc.
Referenced by ShaderSpecializationConst(), and validate().
| bool blender::gpu::tests::ShaderSpecializationConst::is_graphic = false |
Definition at line 35 of file specialization_constants_test.cc.
Referenced by init_shader(), and validate().
| gpu::Shader* blender::gpu::tests::ShaderSpecializationConst::shader = nullptr |
Definition at line 26 of file specialization_constants_test.cc.
Referenced by init_shader(), ShaderSpecializationConst(), validate(), and ~ShaderSpecializationConst().
| StorageBuf* blender::gpu::tests::ShaderSpecializationConst::ssbo = nullptr |
Definition at line 27 of file specialization_constants_test.cc.
Referenced by init_shader(), ShaderSpecializationConst(), validate(), and ~ShaderSpecializationConst().
| uint blender::gpu::tests::ShaderSpecializationConst::uint_in |
Definition at line 31 of file specialization_constants_test.cc.
Referenced by ShaderSpecializationConst(), and validate().