|
Blender V4.3
|
Public Member Functions | |
| ShaderSpecializationConst (const char *info_name) | |
| ~ShaderSpecializationConst () | |
| void | init_shader (const char *info_name) |
| void | validate () |
Public Attributes | |
| GPUShader * | shader = nullptr |
| GPUStorageBuf * | 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_constant_bool(), GPU_shader_constant_float(), GPU_shader_constant_int(), GPU_shader_constant_uint(), GPU_shader_get_ssbo_binding(), GPU_storagebuf_bind(), init_shader(), int_in, ssbo, uint_in, and validate().
|
inline |
Definition at line 69 of file specialization_constants_test.cc.
References GPU_shader_free(), GPU_shader_unbind(), GPU_storagebuf_free(), and ssbo.
|
inline |
Definition at line 80 of file specialization_constants_test.cc.
References blender::gpu::shader::ShaderCreateInfo::compute_source_, GPU_shader_create_from_info_name(), gpu_shader_create_info_get(), GPU_storagebuf_create_ex(), GPU_USAGE_STREAM, blender::StringRefBase::is_empty(), is_graphic, and ssbo.
Referenced by ShaderSpecializationConst().
|
inline |
Definition at line 95 of file specialization_constants_test.cc.
References batch, bool_in, EXPECT_EQ(), fb(), float_in, GPU_BARRIER_BUFFER_UPDATE, GPU_batch_create_ex(), GPU_batch_discard(), GPU_batch_draw_advanced(), GPU_BATCH_OWNS_VBO, GPU_batch_set_shader(), GPU_COMP_U32, GPU_compute_dispatch(), GPU_FETCH_INT, GPU_finish(), GPU_framebuffer_bind(), GPU_framebuffer_create(), GPU_framebuffer_default_size(), GPU_framebuffer_free(), GPU_memory_barrier(), GPU_PRIM_POINTS, GPU_storagebuf_read(), GPU_vertbuf_create_with_format, GPU_vertbuf_data_alloc(), GPU_vertformat_attr_add(), int_in, is_graphic, ssbo, uint_in, and verts.
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().
Definition at line 28 of file specialization_constants_test.cc.
| 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().
| GPUShader* blender::gpu::tests::ShaderSpecializationConst::shader = nullptr |
Definition at line 26 of file specialization_constants_test.cc.
| GPUStorageBuf* 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().