|
Blender V5.3
|
Classes | |
| class | ConstPatchCoordWrapperBuffer |
| class | CpuEvalOutput |
| class | EvalOutputAPI |
| class | FaceVaryingVolatileEval |
| class | GPUComputeEvaluator |
| class | GpuEvalOutput |
| class | GPUPatchTable |
| class | GPUStencilTableSSBO |
| GL stencil table (Shader Storage buffer). More... | |
| class | GPUVertexBuffer |
| class | PatchMap |
| An quadtree-based map connecting coarse faces to their sub-patches. More... | |
| class | RawDataWrapperBuffer |
| class | RawDataWrapperVertexBuffer |
| class | StackOrHeapArray |
| class | TopologyRefinerImpl |
| class | VolatileEvalOutput |
Typedefs | |
| using | StackOrHeapPatchCoordArray = StackOrHeapArray<PatchCoord, 32 * 32> |
Functions | |
| OpenSubdiv::Sdc::SchemeType | getSchemeTypeFromCAPI (OpenSubdiv_SchemeType type) |
| OpenSubdiv::Sdc::Options::FVarLinearInterpolation | getFVarLinearInterpolationFromCAPI (OpenSubdiv_FVarLinearInterpolation linear_interpolation) |
| OpenSubdiv_FVarLinearInterpolation | getCAPIFVarLinearInterpolationFromOSD (OpenSubdiv::Sdc::Options::FVarLinearInterpolation linear_interpolation) |
| OpenSubdiv::Sdc::Options::VtxBoundaryInterpolation | getVtxBoundaryInterpolationFromCAPI (OpenSubdiv_VtxBoundaryInterpolation boundary_interpolation) |
| void | stringSplit (std::vector< std::string > *tokens, const std::string &str, const std::string &separators, bool skip_empty) |
| bool | is_adaptive (const CpuPatchTable *patch_table) |
| bool | is_adaptive (const GPUPatchTable *patch_table) |
| static gpu::StorageBuf * | create_patch_array_buffer (const PatchArrayVector &patch_arrays) |
| static void | convertPatchCoordsToArray (const OpenSubdiv_PatchCoord *patch_coords, const int num_patch_coords, const PatchMap *patch_map, StackOrHeapPatchCoordArray *array) |
| template<class T> | |
| gpu::StorageBuf * | create_buffer (std::vector< T > const &src, const char *name) |
| static void | storage_buffer_free (gpu::StorageBuf **buffer) |
| static blender::gpu::Shader * | compile_eval_stencil_shader (BufferDescriptor const &srcDesc, BufferDescriptor const &dstDesc, BufferDescriptor const &duDesc, BufferDescriptor const &dvDesc, int workGroupSize) |
| static blender::gpu::Shader * | compile_eval_patches_shader (BufferDescriptor const &srcDesc, BufferDescriptor const &dstDesc, BufferDescriptor const &duDesc, BufferDescriptor const &dvDesc, int workGroupSize) |
| static void | discard_buffer (gpu::StorageBuf **buffer) |
| static void | discard_list (std::vector< gpu::StorageBuf * > &buffers) |
| static OpenSubdiv::Sdc::Options | getSDCOptions (OpenSubdiv_Converter *converter) |
| static TopologyRefinerFactoryType::Options | getTopologyRefinerOptions (OpenSubdiv_Converter *converter) |
| static void | storeBaseMeshTopology (const OpenSubdiv_Converter *converter, TopologyRefinerImpl &refiner_impl) |
| static const OpenSubdiv::Far::TopologyRefiner * | getOSDTopologyRefiner (const TopologyRefinerImpl *topology_refiner_impl) |
| static const OpenSubdiv::Far::TopologyLevel & | getOSDTopologyBaseLevel (const TopologyRefinerImpl *topology_refiner_impl) |
| static bool | checkSchemeTypeMatches (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| static bool | checkOptionsMatches (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| static bool | checkPreliminaryMatches (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| static bool | checkBaseMeshTopologyMatches (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| static bool | checkSingleUVLayerMatch (const OpenSubdiv::Far::TopologyLevel &base_level, const OpenSubdiv_Converter *converter, const int layer_index) |
| static bool | checkUVLayersMatch (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| static bool | checkTopologyAttributesMatch (const TopologyRefinerImpl *topology_refiner_impl, const OpenSubdiv_Converter *converter) |
| using blender::opensubdiv::StackOrHeapPatchCoordArray = StackOrHeapArray<PatchCoord, 32 * 32> |
Definition at line 123 of file evaluator_impl.cc.
|
static |
Definition at line 66 of file topology_refiner_impl_compare.cc.
References blender::opensubdiv::TopologyRefinerImpl::base_corner_verts, blender::opensubdiv::TopologyRefinerImpl::base_edge_sharpness, blender::opensubdiv::TopologyRefinerImpl::base_edges_sparse, blender::opensubdiv::TopologyRefinerImpl::base_face_offsets, blender::opensubdiv::TopologyRefinerImpl::base_vert_sharpness, blender::opensubdiv::TopologyRefinerImpl::base_verts_num, checkBaseMeshTopologyMatches(), OpenSubdiv_Converter::corner_verts, OpenSubdiv_Converter::edge_sharpness, OpenSubdiv_Converter::edges, OpenSubdiv_Converter::face_offsets, OpenSubdiv_Converter::vert_sharpness, and OpenSubdiv_Converter::verts_num.
Referenced by checkBaseMeshTopologyMatches(), and blender::opensubdiv::TopologyRefinerImpl::isEqualToConverter().
|
static |
Definition at line 41 of file topology_refiner_impl_compare.cc.
References checkOptionsMatches(), OpenSubdiv_Converter::fvar_linear_interpolation, getFVarLinearInterpolationFromCAPI(), getOSDTopologyRefiner(), and options.
Referenced by checkOptionsMatches(), and checkPreliminaryMatches().
|
static |
Definition at line 56 of file topology_refiner_impl_compare.cc.
References checkOptionsMatches(), checkPreliminaryMatches(), and checkSchemeTypeMatches().
Referenced by checkPreliminaryMatches(), and blender::opensubdiv::TopologyRefinerImpl::isEqualToConverter().
|
static |
Definition at line 33 of file topology_refiner_impl_compare.cc.
References checkSchemeTypeMatches(), getOSDTopologyRefiner(), getSchemeTypeFromCAPI(), and OpenSubdiv_Converter::scheme_type.
Referenced by checkPreliminaryMatches(), and checkSchemeTypeMatches().
|
static |
Definition at line 109 of file topology_refiner_impl_compare.cc.
References checkSingleUVLayerMatch(), OpenSubdiv_Converter::finishUVLayer, OpenSubdiv_Converter::getFaceCornerUVIndex, and OpenSubdiv_Converter::precalcUVLayer.
Referenced by checkSingleUVLayerMatch(), and checkUVLayersMatch().
|
static |
Definition at line 150 of file topology_refiner_impl_compare.cc.
References checkTopologyAttributesMatch(), and checkUVLayersMatch().
Referenced by checkTopologyAttributesMatch(), and blender::opensubdiv::TopologyRefinerImpl::isEqualToConverter().
|
static |
Definition at line 132 of file topology_refiner_impl_compare.cc.
References checkSingleUVLayerMatch(), checkUVLayersMatch(), OpenSubdiv_Converter::getNumUVLayers, and getOSDTopologyBaseLevel().
Referenced by checkTopologyAttributesMatch(), and checkUVLayersMatch().
|
static |
Definition at line 432 of file gpu_compute_evaluator.cc.
References blender::gpu::shader::ShaderCreateInfo::builtins(), compile_eval_patches_shader(), blender::gpu::shader::ShaderCreateInfo::compute_source(), blender::gpu::shader::ShaderCreateInfo::define(), blender::gpu::shader::GLOBAL_INVOCATION_ID, blender::GPU_shader_create_from_info(), blender::gpu::shader::int3_t, blender::gpu::shader::int_t, length(), blender::gpu::shader::ShaderCreateInfo::local_group_size(), blender::gpu::shader::NO_BUFFER_TYPE_LINTING, blender::gpu::shader::NUM_WORK_GROUP, blender::gpu::shader::ShaderCreateInfo::push_constant(), blender::gpu::shader::read, blender::gpu::shader::read_write, SHADER_DST_VERTEX_BUFFER_BUF_SLOT, SHADER_DU_BUFFER_BUF_SLOT, SHADER_DV_BUFFER_BUF_SLOT, SHADER_PATCH_ARRAY_BUFFER_BUF_SLOT, SHADER_PATCH_COORDS_BUF_SLOT, SHADER_PATCH_INDEX_BUFFER_BUF_SLOT, SHADER_PATCH_PARAM_BUFFER_BUF_SLOT, SHADER_SRC_VERTEX_BUFFER_BUF_SLOT, blender::gpu::shader::ShaderCreateInfo::storage_buf(), blender::gpu::shader::ShaderCreateInfo::typedef_source(), and blender::gpu::shader::write.
Referenced by compile_eval_patches_shader().
|
static |
Definition at line 333 of file gpu_compute_evaluator.cc.
References blender::gpu::shader::ShaderCreateInfo::builtins(), compile_eval_stencil_shader(), blender::gpu::shader::ShaderCreateInfo::compute_source(), blender::gpu::shader::ShaderCreateInfo::define(), blender::gpu::shader::GLOBAL_INVOCATION_ID, blender::GPU_shader_create_from_info(), blender::gpu::shader::int3_t, blender::gpu::shader::int_t, length(), blender::gpu::shader::ShaderCreateInfo::local_group_size(), blender::gpu::shader::NUM_WORK_GROUP, blender::gpu::shader::ShaderCreateInfo::push_constant(), blender::gpu::shader::read, blender::gpu::shader::read_write, SHADER_DST_VERTEX_BUFFER_BUF_SLOT, SHADER_DU_BUFFER_BUF_SLOT, SHADER_DU_WEIGHTS_BUF_SLOT, SHADER_DV_BUFFER_BUF_SLOT, SHADER_DV_WEIGHTS_BUF_SLOT, SHADER_INDICES_BUF_SLOT, SHADER_OFFSETS_BUF_SLOT, SHADER_SIZES_BUF_SLOT, SHADER_SRC_VERTEX_BUFFER_BUF_SLOT, SHADER_WEIGHTS_BUF_SLOT, blender::gpu::shader::ShaderCreateInfo::storage_buf(), blender::gpu::shader::ShaderCreateInfo::typedef_source(), and blender::gpu::shader::write.
Referenced by compile_eval_stencil_shader().
|
static |
Definition at line 125 of file evaluator_impl.cc.
References convertPatchCoordsToArray(), array< T, alignment >::data(), blender::opensubdiv::PatchMap::FindPatch(), array< T, alignment >::resize(), and blender::v.
Referenced by convertPatchCoordsToArray(), and blender::opensubdiv::EvalOutputAPI::evaluatePatchesLimit().
| gpu::StorageBuf * blender::opensubdiv::create_buffer | ( | std::vector< T > const & | src, |
| const char * | name ) |
Definition at line 54 of file gpu_compute_evaluator.cc.
References create_buffer(), blender::GPU_storagebuf_create_ex(), blender::GPU_USAGE_STATIC, and T.
Referenced by create_buffer().
|
static |
Definition at line 18 of file eval_output_gpu.cc.
References create_patch_array_buffer(), blender::GPU_storagebuf_create_ex(), and blender::GPU_USAGE_STATIC.
Referenced by blender::opensubdiv::GpuEvalOutput::create_face_varying_patch_array_buf(), create_patch_array_buffer(), and blender::opensubdiv::GpuEvalOutput::create_patch_arrays_buf().
|
static |
Definition at line 24 of file gpu_patch_table.cc.
References discard_buffer(), and blender::GPU_storagebuf_free().
Referenced by discard_buffer(), and blender::opensubdiv::GPUPatchTable::~GPUPatchTable().
|
static |
Definition at line 32 of file gpu_patch_table.cc.
References discard_list(), and blender::GPU_storagebuf_free().
Referenced by discard_list(), and blender::opensubdiv::GPUPatchTable::~GPUPatchTable().
| OpenSubdiv_FVarLinearInterpolation blender::opensubdiv::getCAPIFVarLinearInterpolationFromOSD | ( | OpenSubdiv::Sdc::Options::FVarLinearInterpolation | linear_interpolation | ) |
Definition at line 54 of file type_convert.cc.
References blender::gpu::shader::metadata::assert, getCAPIFVarLinearInterpolationFromOSD(), OSD_FVAR_LINEAR_INTERPOLATION_ALL, OSD_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS1, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS2, and OSD_FVAR_LINEAR_INTERPOLATION_NONE.
Referenced by getCAPIFVarLinearInterpolationFromOSD().
| OpenSubdiv::Sdc::Options::FVarLinearInterpolation blender::opensubdiv::getFVarLinearInterpolationFromCAPI | ( | OpenSubdiv_FVarLinearInterpolation | linear_interpolation | ) |
Definition at line 32 of file type_convert.cc.
References blender::gpu::shader::metadata::assert, getFVarLinearInterpolationFromCAPI(), OSD_FVAR_LINEAR_INTERPOLATION_ALL, OSD_FVAR_LINEAR_INTERPOLATION_BOUNDARIES, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_ONLY, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS1, OSD_FVAR_LINEAR_INTERPOLATION_CORNERS_PLUS2, and OSD_FVAR_LINEAR_INTERPOLATION_NONE.
Referenced by checkOptionsMatches(), getFVarLinearInterpolationFromCAPI(), and getSDCOptions().
|
static |
Definition at line 24 of file topology_refiner_impl_compare.cc.
References getOSDTopologyBaseLevel(), and getOSDTopologyRefiner().
Referenced by checkUVLayersMatch(), and getOSDTopologyBaseLevel().
|
static |
Definition at line 18 of file topology_refiner_impl_compare.cc.
References getOSDTopologyRefiner(), and blender::opensubdiv::TopologyRefinerImpl::topology_refiner.
Referenced by checkOptionsMatches(), checkSchemeTypeMatches(), getOSDTopologyBaseLevel(), and getOSDTopologyRefiner().
| OpenSubdiv::Sdc::SchemeType blender::opensubdiv::getSchemeTypeFromCAPI | ( | OpenSubdiv_SchemeType | type | ) |
Definition at line 18 of file type_convert.cc.
References blender::gpu::shader::metadata::assert, getSchemeTypeFromCAPI(), OSD_SCHEME_BILINEAR, OSD_SCHEME_CATMARK, and OSD_SCHEME_LOOP.
Referenced by checkSchemeTypeMatches(), getSchemeTypeFromCAPI(), and getTopologyRefinerOptions().
|
static |
Definition at line 271 of file topology_refiner_factory.cc.
References OpenSubdiv_Converter::fvar_linear_interpolation, getFVarLinearInterpolationFromCAPI(), getSDCOptions(), getVtxBoundaryInterpolationFromCAPI(), options, and OpenSubdiv_Converter::vtx_boundary_interpolation.
Referenced by getSDCOptions(), and getTopologyRefinerOptions().
|
static |
Definition at line 287 of file topology_refiner_factory.cc.
References getSchemeTypeFromCAPI(), getSDCOptions(), getTopologyRefinerOptions(), and OpenSubdiv_Converter::scheme_type.
Referenced by blender::opensubdiv::TopologyRefinerImpl::createFromConverter(), and getTopologyRefinerOptions().
| OpenSubdiv::Sdc::Options::VtxBoundaryInterpolation blender::opensubdiv::getVtxBoundaryInterpolationFromCAPI | ( | OpenSubdiv_VtxBoundaryInterpolation | boundary_interpolation | ) |
Definition at line 76 of file type_convert.cc.
References blender::gpu::shader::metadata::assert, getVtxBoundaryInterpolationFromCAPI(), OSD_VTX_BOUNDARY_EDGE_AND_CORNER, OSD_VTX_BOUNDARY_EDGE_ONLY, and OSD_VTX_BOUNDARY_NONE.
Referenced by getSDCOptions(), and getVtxBoundaryInterpolationFromCAPI().
| bool blender::opensubdiv::is_adaptive | ( | const CpuPatchTable * | patch_table | ) |
Definition at line 10 of file eval_output.cc.
References is_adaptive().
Referenced by is_adaptive(), and is_adaptive().
| bool blender::opensubdiv::is_adaptive | ( | const GPUPatchTable * | patch_table | ) |
Definition at line 15 of file eval_output.cc.
References blender::opensubdiv::GPUPatchTable::GetPatchArrays(), and is_adaptive().
|
static |
Definition at line 94 of file gpu_compute_evaluator.cc.
References blender::GPU_storagebuf_free(), and storage_buffer_free().
Referenced by storage_buffer_free(), and blender::opensubdiv::GPUStencilTableSSBO::~GPUStencilTableSSBO().
|
static |
Definition at line 307 of file topology_refiner_factory.cc.
References blender::gpu::shader::metadata::assert, blender::opensubdiv::TopologyRefinerImpl::base_corner_verts, blender::opensubdiv::TopologyRefinerImpl::base_edge_sharpness, blender::opensubdiv::TopologyRefinerImpl::base_edges_sparse, blender::opensubdiv::TopologyRefinerImpl::base_face_offsets, blender::opensubdiv::TopologyRefinerImpl::base_vert_sharpness, blender::opensubdiv::TopologyRefinerImpl::base_verts_num, OpenSubdiv_Converter::corner_verts, OpenSubdiv_Converter::edge_sharpness, OpenSubdiv_Converter::edges, OpenSubdiv_Converter::face_offsets, storeBaseMeshTopology(), total_size_from_offsets(), OpenSubdiv_Converter::vert_sharpness, and OpenSubdiv_Converter::verts_num.
Referenced by blender::opensubdiv::TopologyRefinerImpl::createFromConverter(), and storeBaseMeshTopology().
| void blender::opensubdiv::stringSplit | ( | std::vector< std::string > * | tokens, |
| const std::string & | str, | ||
| const std::string & | separators, | ||
| bool | skip_empty ) |
Definition at line 9 of file intern/opensubdiv/internal/base/util.cc.
References str, and stringSplit().
Referenced by openSubdiv_getVersionHex(), and stringSplit().