Blender V5.3
draw_curves_interpolation.bsl.hh File Reference
#include "draw_attribute_shader_shared.hh"
#include "gpu_shader_attribute_load.bsl.hh"
#include "gpu_shader_math_matrix_transform.bsl.hh"
#include "gpu_shader_math_safe.bsl.hh"
#include "gpu_shader_offset_indices_lib.glsl"

Go to the source code of this file.

Classes

struct  curves::InterpPosition
struct  curves::AttribBuf< StoredT, T >
struct  curves::AttribBuf< InterpPosition, float4 >
struct  curves::CurvesData

Namespaces

namespace  curves
namespace  curves::catmull_rom
namespace  curves::bezier
namespace  curves::nurbs

Functions

InterpPosition curves::mix4 (InterpPosition v0, InterpPosition v1, InterpPosition v2, InterpPosition v3, float4 w)
template<typename DataT>
DataT curves::mix4 (DataT v0, DataT v1, DataT v2, DataT v3, float4 w)
template float4 curves::mix4< float4 > (float4, float4, float4, float4, float4)
template float3 curves::mix4< float3 > (float3, float3, float3, float3, float4)
template float2 curves::mix4< float2 > (float2, float2, float2, float2, float4)
template float curves::mix4< float > (float, float, float, float, float4)
float4 curves::catmull_rom::calculate_basis (const float parameter)
int4 curves::catmull_rom::get_points (uint point_id, IndexRange points, const bool cyclic)
template<typename StorageT, typename AttrT>
void curves::catmull_rom::evaluate_curve (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const IndexRange points, const IndexRange evaluated_points, const int curve_index)
template void curves::catmull_rom::evaluate_curve< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, IndexRange, IndexRange, int)
template void curves::catmull_rom::evaluate_curve< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, IndexRange, IndexRange, int)
template void curves::catmull_rom::evaluate_curve< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, IndexRange, IndexRange, int)
template void curves::catmull_rom::evaluate_curve< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, IndexRange, IndexRange, int)
template void curves::catmull_rom::evaluate_curve< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, IndexRange, IndexRange, int)
template<typename StorageT, typename AttrT>
void curves::bezier::evaluate_segment (const CurvesData &, AttribBuf< StorageT, AttrT > &attr, const int2 points, const IndexRange result)
template<>
void curves::bezier::evaluate_segment< InterpPosition, float4 > (const CurvesData &srt, AttribBuf< InterpPosition, float4 > &attr, const int2 points, const IndexRange result)
template void curves::bezier::evaluate_segment< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, int2, IndexRange)
template void curves::bezier::evaluate_segment< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, int2, IndexRange)
template void curves::bezier::evaluate_segment< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, int2, IndexRange)
template void curves::bezier::evaluate_segment< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, int2, IndexRange)
IndexRange curves::bezier::per_curve_point_offsets_range (const IndexRange points, const int curve_index)
int2 curves::bezier::get_points (uint point_id, IndexRange points, const bool cyclic)
template<typename StorageT, typename AttrT>
void curves::bezier::evaluate_curve (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const IndexRange points, const IndexRange evaluated_points, const int curve_index)
template void curves::bezier::evaluate_curve< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, IndexRange, IndexRange, int)
template void curves::bezier::evaluate_curve< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, IndexRange, IndexRange, int)
template void curves::bezier::evaluate_curve< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, IndexRange, IndexRange, int)
template void curves::bezier::evaluate_curve< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, IndexRange, IndexRange, int)
template void curves::bezier::evaluate_curve< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, IndexRange, IndexRange, int)
template<typename StorageT, typename AttrT>
void curves::copy_curve_data (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const IndexRange points, const IndexRange evaluated_points, const int curve_index)
template void curves::copy_curve_data< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, IndexRange, IndexRange, int)
template void curves::copy_curve_data< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, IndexRange, IndexRange, int)
template void curves::copy_curve_data< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, IndexRange, IndexRange, int)
template void curves::copy_curve_data< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, IndexRange, IndexRange, int)
template void curves::copy_curve_data< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, IndexRange, IndexRange, int)
template<typename StorageT, typename AttrT>
void curves::nurbs::evaluate_curve (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const IndexRange points, const IndexRange evaluated_points_padded, const int curve_index)
template void curves::nurbs::evaluate_curve< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, IndexRange, IndexRange, int)
template void curves::nurbs::evaluate_curve< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, IndexRange, IndexRange, int)
template void curves::nurbs::evaluate_curve< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, IndexRange, IndexRange, int)
template void curves::nurbs::evaluate_curve< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, IndexRange, IndexRange, int)
template void curves::nurbs::evaluate_curve< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, IndexRange, IndexRange, int)
template<typename StorageT, typename AttrT>
void curves::evaluate_curve (const CurvesData &srt, AttribBuf< StorageT, AttrT > &attr, const uint3 global_id)
template void curves::evaluate_curve< InterpPosition, float4 > (const CurvesData &, AttribBuf< InterpPosition, float4 > &, const uint3)
template void curves::evaluate_curve< StoredFloat, float > (const CurvesData &, AttribBuf< StoredFloat, float > &, const uint3)
template void curves::evaluate_curve< StoredFloat2, float2 > (const CurvesData &, AttribBuf< StoredFloat2, float2 > &, const uint3)
template void curves::evaluate_curve< StoredFloat3, float3 > (const CurvesData &, AttribBuf< StoredFloat3, float3 > &, const uint3)
template void curves::evaluate_curve< StoredFloat4, float4 > (const CurvesData &, AttribBuf< StoredFloat4, float4 > &, const uint3)

Variables

PipelineCompute draw_curves_interpolate_position (curves::evaluate_curve< curves::InterpPosition, float4 >)
PipelineCompute draw_curves_interpolate_float4_attribute (curves::evaluate_curve< StoredFloat4, float4 >)
PipelineCompute draw_curves_interpolate_float3_attribute (curves::evaluate_curve< StoredFloat3, float3 >)
PipelineCompute draw_curves_interpolate_float2_attribute (curves::evaluate_curve< StoredFloat2, float2 >)
PipelineCompute draw_curves_interpolate_float_attribute (curves::evaluate_curve< StoredFloat, float >)

Detailed Description

GPU generated interpolated position and radius. Updated on attribute change. One thread processes one curve.

Equivalent of CurvesGeometry::evaluated_positions().

Definition in file draw_curves_interpolation.bsl.hh.

Variable Documentation

◆ draw_curves_interpolate_float2_attribute

◆ draw_curves_interpolate_float3_attribute

◆ draw_curves_interpolate_float4_attribute

◆ draw_curves_interpolate_float_attribute

PipelineCompute draw_curves_interpolate_float_attribute(curves::evaluate_curve< StoredFloat, float >) ( curves::evaluate_curve< StoredFloat, float > )

◆ draw_curves_interpolate_position