|
Blender V5.0
|
#include <epoxy/gl.h>#include "gpu_compute_evaluator.h"#include <opensubdiv/far/error.h>#include <opensubdiv/far/patchDescriptor.h>#include <opensubdiv/far/stencilTable.h>#include <cassert>#include <cmath>#include <sstream>#include <string>#include <vector>#include "GPU_capabilities.hh"#include "GPU_compute.hh"#include "GPU_context.hh"#include "GPU_debug.hh"#include "GPU_state.hh"#include "GPU_vertex_buffer.hh"#include "gpu_shader_create_info.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| namespace | blender::opensubdiv |
Macros | |
| #define | SHADER_SRC_VERTEX_BUFFER_BUF_SLOT 0 |
| #define | SHADER_DST_VERTEX_BUFFER_BUF_SLOT 1 |
| #define | SHADER_DU_BUFFER_BUF_SLOT 2 |
| #define | SHADER_DV_BUFFER_BUF_SLOT 3 |
| #define | SHADER_SIZES_BUF_SLOT 4 |
| #define | SHADER_OFFSETS_BUF_SLOT 5 |
| #define | SHADER_INDICES_BUF_SLOT 6 |
| #define | SHADER_WEIGHTS_BUF_SLOT 7 |
| #define | SHADER_DU_WEIGHTS_BUF_SLOT 8 |
| #define | SHADER_DV_WEIGHTS_BUF_SLOT 9 |
| #define | SHADER_PATCH_ARRAY_BUFFER_BUF_SLOT 4 |
| #define | SHADER_PATCH_COORDS_BUF_SLOT 5 |
| #define | SHADER_PATCH_INDEX_BUFFER_BUF_SLOT 6 |
| #define | SHADER_PATCH_PARAM_BUFFER_BUF_SLOT 7 |
| #define | BIND_BUF_DESC(uniform, desc) |
| #define | BIND_BUF_DESC(uniform, desc) |
Functions | |
| template<class T> | |
| gpu::StorageBuf * | blender::opensubdiv::create_buffer (std::vector< T > const &src, const char *name) |
| static void | blender::opensubdiv::storage_buffer_free (gpu::StorageBuf **buffer) |
| static blender::gpu::Shader * | blender::opensubdiv::compile_eval_stencil_shader (BufferDescriptor const &srcDesc, BufferDescriptor const &dstDesc, BufferDescriptor const &duDesc, BufferDescriptor const &dvDesc, int workGroupSize) |
| static blender::gpu::Shader * | blender::opensubdiv::compile_eval_patches_shader (BufferDescriptor const &srcDesc, BufferDescriptor const &dstDesc, BufferDescriptor const &duDesc, BufferDescriptor const &dvDesc, int workGroupSize) |
| #define BIND_BUF_DESC | ( | uniform, | |
| desc ) |
| #define BIND_BUF_DESC | ( | uniform, | |
| desc ) |
| #define SHADER_DST_VERTEX_BUFFER_BUF_SLOT 1 |
Definition at line 34 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader(), and blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_DU_BUFFER_BUF_SLOT 2 |
Definition at line 35 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader(), and blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_DU_WEIGHTS_BUF_SLOT 8 |
Definition at line 41 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_DV_BUFFER_BUF_SLOT 3 |
Definition at line 36 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader(), and blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_DV_WEIGHTS_BUF_SLOT 9 |
Definition at line 42 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_INDICES_BUF_SLOT 6 |
Definition at line 39 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_OFFSETS_BUF_SLOT 5 |
Definition at line 38 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_PATCH_ARRAY_BUFFER_BUF_SLOT 4 |
Definition at line 44 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader().
| #define SHADER_PATCH_COORDS_BUF_SLOT 5 |
Definition at line 45 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader().
| #define SHADER_PATCH_INDEX_BUFFER_BUF_SLOT 6 |
Definition at line 46 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader().
| #define SHADER_PATCH_PARAM_BUFFER_BUF_SLOT 7 |
Definition at line 47 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader().
| #define SHADER_SIZES_BUF_SLOT 4 |
Definition at line 37 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_SRC_VERTEX_BUFFER_BUF_SLOT 0 |
Definition at line 33 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_patches_shader(), and blender::opensubdiv::compile_eval_stencil_shader().
| #define SHADER_WEIGHTS_BUF_SLOT 7 |
Definition at line 40 of file gpu_compute_evaluator.cc.
Referenced by blender::opensubdiv::compile_eval_stencil_shader().