|
Blender V5.3
|
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, blender::GPU_render_begin(), blender::GPU_render_end(), blender::GPU_shader_get_constant(), blender::GPU_shader_get_default_constant_state(), blender::GPU_shader_get_ssbo_binding(), blender::GPU_storagebuf_bind(), init_shader(), int_in, blender::gpu::shader::SpecializationConstants::set_value(), shader, ssbo, uint_in, and validate().
Referenced by blender::gpu::tests::test_specialization_constants_compute(), and blender::gpu::tests::test_specialization_constants_graphic().
|
inline |
Definition at line 67 of file specialization_constants_test.cc.
References blender::GPU_shader_free(), blender::GPU_shader_unbind(), blender::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, EXPECT_NE, blender::GPU_shader_create_from_info_name(), blender::gpu_shader_create_info_get(), blender::GPU_storagebuf_create_ex(), blender::GPU_USAGE_STREAM, blender::blender::StringRefBase::is_empty(), is_graphic, shader, and ssbo.
Referenced by ShaderSpecializationConst().
|
inline |
Definition at line 93 of file specialization_constants_test.cc.
References bool_in, data, blender::EXPECT_EQ(), blender::fb(), float_in, blender::GPU_BARRIER_BUFFER_UPDATE, blender::GPU_batch_create_procedural(), blender::GPU_batch_discard(), blender::GPU_batch_draw_advanced(), blender::GPU_batch_set_shader(), blender::GPU_compute_dispatch(), blender::GPU_finish(), blender::GPU_framebuffer_bind(), blender::GPU_framebuffer_create(), blender::GPU_framebuffer_default_size(), blender::GPU_framebuffer_free(), blender::GPU_memory_barrier(), blender::GPU_PRIM_POINTS, blender::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().