|
Blender V5.3
|
#include "gpu_shader_compat.hh"Go to the source code of this file.
Functions | |
| uint | gpu_attr_load_index (uint vertex_index, int2 stride_and_offset) |
| float4 | gpu_attr_decode_1010102_snorm (uint in_data) |
| float4 | gpu_attr_decode_short4_to_float4_snorm (uint data0, uint data1) |
| uint4 | gpu_attr_decode_uchar4_to_uint4 (uint in_data) |
| float3 | gpu_attr_load_float3 (const float(&data_buf)[], int2 stride_and_offset, uint i) |
| float2 | gpu_attr_load_float2 (const float(&data_buf)[], int2 stride_and_offset, uint i) |
| uint3 | gpu_attr_load_uint3 (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| uint2 | gpu_attr_load_uint2 (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| int3 | gpu_attr_load_int3 (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| int2 | gpu_attr_load_int2 (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| float4 | gpu_attr_load_uint_1010102_snorm (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| float4 | gpu_attr_load_short4_snorm (const uint(&data_buf)[], int2 stride_and_offset, uint i) |
| uint4 | gpu_attr_load_uchar4 (const uint(&data_buf)[], uint i) |
| uint | gpu_attr_load_uchar (const uint(&data_buf)[], uint i) |
| bool | gpu_attr_load_bool (const uint(&data)[], uint i) |
| float4 gpu_attr_decode_1010102_snorm | ( | uint | in_data | ) |
Definition at line 21 of file gpu_shader_attribute_load.bsl.hh.
References floatBitsToUint, gpu_attr_decode_1010102_snorm(), greaterThan, mix, and uintBitsToFloat.
Referenced by gpu_attr_decode_1010102_snorm(), and gpu_attr_load_uint_1010102_snorm().
| float4 gpu_attr_decode_short4_to_float4_snorm | ( | uint | data0, |
| uint | data1 ) |
Definition at line 33 of file gpu_shader_attribute_load.bsl.hh.
References gpu_attr_decode_short4_to_float4_snorm(), and unpackSnorm2x16.
Referenced by gpu_attr_decode_short4_to_float4_snorm(), and gpu_attr_load_short4_snorm().
| uint4 gpu_attr_decode_uchar4_to_uint4 | ( | uint | in_data | ) |
Definition at line 38 of file gpu_shader_attribute_load.bsl.hh.
References gpu_attr_decode_uchar4_to_uint4().
Referenced by gpu_attr_decode_uchar4_to_uint4(), gpu_attr_load_uchar(), gpu_attr_load_uchar4(), and builtin::nodelink::vert().
| bool gpu_attr_load_bool | ( | const uint(&) | data[], |
| uint | i ) |
Definition at line 146 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_bool(), and gpu_attr_load_uchar().
Referenced by curves::CurvesData::curve_cyclic_get(), curves::eval_topology(), and gpu_attr_load_bool().
Definition at line 58 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_float2(), gpu_attr_load_index(), and index.
Referenced by gpu_attr_load_float2().
Definition at line 46 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_float3(), gpu_attr_load_index(), and index.
Referenced by curves::bezier::evaluate_segment< InterpPosition, float4 >(), gpu_attr_load_float3(), overlay::armature::shape::outline::Resources::input_assembly(), and overlay::armature::shape::wire::Resources::input_assembly().
| uint gpu_attr_load_index | ( | uint | vertex_index, |
| int2 | stride_and_offset ) |
Library to read packed vertex buffer data of a gpu::Batch using a SSBO rather than using input assembly. It is not needed to use these macros if the data is known to be aligned and contiguous. Arrays of any 4-byte component vector except 3 component vectors do not need this. Returns index in the first component. Needed for non trivially packed data.
Definition at line 16 of file gpu_shader_attribute_load.bsl.hh.
References gpu_attr_load_index(), int2::x, and int2::y.
Referenced by gpu_attr_load_float2(), gpu_attr_load_float3(), gpu_attr_load_index(), gpu_attr_load_int2(), gpu_attr_load_int3(), gpu_attr_load_short4_snorm(), gpu_attr_load_uchar(), gpu_attr_load_uchar4(), gpu_attr_load_uint2(), gpu_attr_load_uint3(), gpu_attr_load_uint_1010102_snorm(), workbench::shadow::Resources::input_assembly(), curves::AttribBuf< InterpPosition, float4 >::input_load(), and builtin::polyline::Resources::pull_vertex_data().
Definition at line 102 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_index(), gpu_attr_load_int2(), and index.
Referenced by gpu_attr_load_int2().
Definition at line 92 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_index(), gpu_attr_load_int3(), and index.
Referenced by gpu_attr_load_int3().
Definition at line 123 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_decode_short4_to_float4_snorm(), gpu_attr_load_index(), gpu_attr_load_short4_snorm(), and index.
Referenced by gpu_attr_load_short4_snorm().
| uint gpu_attr_load_uchar | ( | const uint(&) | data_buf[], |
| uint | i ) |
Definition at line 139 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_decode_uchar4_to_uint4(), gpu_attr_load_index(), gpu_attr_load_uchar(), and index.
Referenced by curves::evaluate_curve(), curves::nurbs::evaluate_curve(), gpu_attr_load_bool(), and gpu_attr_load_uchar().
| uint4 gpu_attr_load_uchar4 | ( | const uint(&) | data_buf[], |
| uint | i ) |
Definition at line 133 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_decode_uchar4_to_uint4(), gpu_attr_load_index(), gpu_attr_load_uchar4(), and index.
Referenced by gpu_attr_load_uchar4().
Definition at line 81 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_index(), gpu_attr_load_uint2(), and index.
Referenced by gpu_attr_load_uint2().
Definition at line 69 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_load_index(), gpu_attr_load_uint3(), and index.
Referenced by gpu_attr_load_uint3().
| float4 gpu_attr_load_uint_1010102_snorm | ( | const uint(&) | data_buf[], |
| int2 | stride_and_offset, | ||
| uint | i ) |
Definition at line 111 of file gpu_shader_attribute_load.bsl.hh.
References force_inline, gpu_attr_decode_1010102_snorm(), gpu_attr_load_index(), gpu_attr_load_uint_1010102_snorm(), and index.
Referenced by gpu_attr_load_uint_1010102_snorm().