|
Blender V4.3
|
Contains Volume object GPU attributes configuration. More...
#include "DRW_gpu_wrapper.hh"#include "DRW_render.hh"#include "DNA_fluid_types.h"#include "DNA_volume_types.h"#include "BKE_fluid.h"#include "BKE_global.hh"#include "BKE_mesh.hh"#include "BKE_modifier.hh"#include "BKE_volume.hh"#include "BKE_volume_render.hh"#include "GPU_material.hh"#include "draw_common_c.hh"#include "draw_manager_c.hh"#include "draw_common.hh"Go to the source code of this file.
Classes | |
| struct | VolumeUniformBufPool |
Namespaces | |
| namespace | blender |
| namespace | blender::draw |
Typedefs | |
| using | VolumeInfosBuf = blender::draw::UniformBuffer<VolumeInfos> |
Variables | ||
| struct { | ||
| GPUTexture * dummy_zero | ||
| GPUTexture * dummy_one | ||
| } | g_data = {} | |
Contains Volume object GPU attributes configuration.
Definition in file draw_volume.cc.
Definition at line 33 of file draw_volume.cc.
| DRWShadingGroup * DRW_shgroup_volume_create_sub | ( | Scene * | scene, |
| Object * | ob, | ||
| DRWShadingGroup * | shgrp, | ||
| GPUMaterial * | gpu_material ) |
Add attributes bindings of volume grids to an existing shading group. No draw call is added so the caller can decide how to use the data.
Definition at line 261 of file draw_volume.cc.
References drw_volume_object_grids_init(), drw_volume_object_mesh_init(), drw_volume_world_grids_init(), GPU_material_attributes(), OB_VOLUME, and Object::type.
| void DRW_volume_free | ( | ) |
Definition at line 83 of file draw_volume.cc.
References g_data, and GPU_TEXTURE_FREE_SAFE.
Referenced by DRW_engines_free().
|
static |
Definition at line 71 of file draw_volume.cc.
References g_data, GPU_RGBA8, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_texture_create_3d(), GPU_texture_extend_mode(), and GPU_TEXTURE_USAGE_SHADER_READ.
Referenced by DRW_volume_init(), and grid_default_texture().
| void DRW_volume_init | ( | DRWData * | drw_data | ) |
Definition at line 104 of file draw_volume.cc.
References drw_volume_globals_init(), g_data, and DRWData::volume_grids_ubos.
Referenced by DRW_cache_restart(), DRW_custom_pipeline_begin(), DRW_draw_depth_loop(), DRW_draw_render_loop_ex(), DRW_draw_select_loop(), and DRW_render_object_iter().
|
static |
Definition at line 117 of file draw_volume.cc.
References BKE_volume_density_scale(), BKE_volume_grid_find(), BKE_volume_load(), Object::data, DRW_shgroup_create_sub(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture(), blender::draw::DRW_volume_batch_cache_get_grid(), DST, G, g_data, grid_default_texture(), blender::MatBase< float, 4, 4 >::identity(), int, LISTBASE_FOREACH, DRWVolumeGrid::object_to_texture, blender::draw::detail::UniformCommon< T, len, device_only >::push_update(), DRWVolumeGrid::texture, DRWManager::vmempool, and DRWData::volume_grids_ubos.
Referenced by DRW_shgroup_volume_create_sub().
|
static |
Definition at line 169 of file draw_volume.cc.
References FluidDomainSettings::active_color, FluidDomainSettings::active_fields, BKE_modifier_is_enabled(), BKE_modifiers_findby_type(), FluidModifierData::domain, DRW_shgroup_create_sub(), DRW_shgroup_uniform_block, DRW_shgroup_uniform_texture(), DRW_shgroup_uniform_texture_ref(), DRW_smoke_ensure(), DST, eModifierMode_Realtime, eModifierType_Fluid, FluidDomainSettings::flags, FluidDomainSettings::flame_ignition, FluidDomainSettings::flame_max_temp, FluidDomainSettings::fluid, FLUID_DOMAIN_ACTIVE_COLOR_SET, FLUID_DOMAIN_ACTIVE_COLORS, FLUID_DOMAIN_TYPE_GAS, FLUID_DOMAIN_USE_NOISE, g_data, grid_default_texture(), blender::MatBase< float, 4, 4 >::identity(), LISTBASE_FOREACH, blender::draw::detail::UniformCommon< T, len, device_only >::push_update(), STR_ELEM, STREQ, FluidDomainSettings::tex_color, FluidDomainSettings::tex_density, FluidDomainSettings::tex_flame, FluidDomainSettings::type, UNPACK3, DRWManager::vmempool, and DRWData::volume_grids_ubos.
Referenced by DRW_shgroup_volume_create_sub().
| void DRW_volume_ubos_pool_free | ( | void * | pool | ) |
Definition at line 66 of file draw_volume.cc.
Referenced by DRW_viewport_data_free().
|
static |
Definition at line 252 of file draw_volume.cc.
References DRW_shgroup_uniform_texture(), grid_default_texture(), and LISTBASE_FOREACH.
Referenced by DRW_shgroup_volume_create_sub().
|
static |
Definition at line 89 of file draw_volume.cc.
References drw_volume_globals_init(), g_data, GPU_DEFAULT_0, and GPU_DEFAULT_1.
Referenced by drw_volume_object_grids_init(), blender::draw::drw_volume_object_mesh_init(), drw_volume_object_mesh_init(), drw_volume_world_grids_init(), blender::draw::volume_object_grids_init(), and blender::draw::volume_world_grids_init().
| GPUTexture* dummy_one |
Definition at line 37 of file draw_volume.cc.
| GPUTexture* dummy_zero |
Definition at line 36 of file draw_volume.cc.