Blender V5.3
gpu_shader_common_hash.bsl.hh File Reference

Go to the source code of this file.

Functions

void hash_mix (uint &a, uint &b, uint &c)
void hash_final (uint &a, uint &b, uint &c)
uint hash_uint (uint kx)
uint hash_uint2 (uint kx, uint ky)
uint hash_uint3 (uint kx, uint ky, uint kz)
uint hash_uint4 (uint kx, uint ky, uint kz, uint kw)
uint hash_int (int kx)
uint hash_int2 (int kx, int ky)
uint hash_int3 (int kx, int ky, int kz)
uint hash_int4 (int kx, int ky, int kz, int kw)
int2 hash_pcg2d_i (int2 v)
int3 hash_pcg3d_i (int3 v)
int4 hash_pcg4d_i (int4 v)
float hash_uint_to_float (uint kx)
float hash_uint2_to_float (uint kx, uint ky)
float hash_uint3_to_float (uint kx, uint ky, uint kz)
float hash_uint4_to_float (uint kx, uint ky, uint kz, uint kw)
float hash_float_to_float (float k)
float hash_vec2_to_float (float2 k)
float hash_vec3_to_float (float3 k)
float hash_vec4_to_float (float4 k)
float2 hash_vec2_to_vec2 (float2 k)
float3 hash_vec3_to_vec3 (float3 k)
float4 hash_vec4_to_vec4 (float4 k)
float2 hash_int2_to_vec2 (int2 k)
float3 hash_int3_to_vec3 (int3 k)
float4 hash_int4_to_vec4 (int4 k)
float3 hash_int2_to_vec3 (int2 k)
float3 hash_int4_to_vec3 (int4 k)
float3 hash_float_to_vec3 (float k)
float3 hash_vec2_to_vec3 (float2 k)
float3 hash_vec4_to_vec3 (float4 k)
float2 hash_float_to_vec2 (float k)
float2 hash_vec3_to_vec2 (float3 k)
float2 hash_vec4_to_vec2 (float4 k)
float integer_noise (int n)
float wang_hash_noise (uint s)

Function Documentation

◆ hash_final()

void hash_final ( uint & a,
uint & b,
uint & c )

Definition at line 35 of file gpu_shader_common_hash.bsl.hh.

References b, force_inline, and hash_final().

Referenced by hash_final(), hash_uint(), hash_uint2(), hash_uint3(), and hash_uint4().

◆ hash_float_to_float()

◆ hash_float_to_vec2()

float2 hash_float_to_vec2 ( float k)

◆ hash_float_to_vec3()

◆ hash_int()

uint hash_int ( int kx)

Definition at line 105 of file gpu_shader_common_hash.bsl.hh.

References hash_int(), and hash_uint().

Referenced by hash_int(), and noise_perlin().

◆ hash_int2()

uint hash_int2 ( int kx,
int ky )

Definition at line 110 of file gpu_shader_common_hash.bsl.hh.

References hash_int2(), and hash_uint2().

Referenced by hash_int2(), and noise_perlin().

◆ hash_int2_to_vec2()

◆ hash_int2_to_vec3()

float3 hash_int2_to_vec3 ( int2 k)

◆ hash_int3()

uint hash_int3 ( int kx,
int ky,
int kz )

Definition at line 115 of file gpu_shader_common_hash.bsl.hh.

References hash_int3(), and hash_uint3().

Referenced by hash_int3(), and noise_perlin().

◆ hash_int3_to_vec3()

◆ hash_int4()

uint hash_int4 ( int kx,
int ky,
int kz,
int kw )

Definition at line 120 of file gpu_shader_common_hash.bsl.hh.

References hash_int4(), and hash_uint4().

Referenced by hash_int4(), and noise_perlin().

◆ hash_int4_to_vec3()

float3 hash_int4_to_vec3 ( int4 k)

◆ hash_int4_to_vec4()

◆ hash_mix()

void hash_mix ( uint & a,
uint & b,
uint & c )

Definition at line 13 of file gpu_shader_common_hash.bsl.hh.

References b, force_inline, and hash_mix().

Referenced by hash_mix(), and hash_uint4().

◆ hash_pcg2d_i()

int2 hash_pcg2d_i ( int2 v)

Definition at line 132 of file gpu_shader_common_hash.bsl.hh.

References hash_pcg2d_i().

Referenced by hash_int2_to_float2(), hash_int2_to_vec2(), and hash_pcg2d_i().

◆ hash_pcg3d_i()

int3 hash_pcg3d_i ( int3 v)

Definition at line 143 of file gpu_shader_common_hash.bsl.hh.

References hash_pcg3d_i().

Referenced by hash_int3_to_float3(), hash_int3_to_vec3(), and hash_pcg3d_i().

◆ hash_pcg4d_i()

int4 hash_pcg4d_i ( int4 v)

Definition at line 156 of file gpu_shader_common_hash.bsl.hh.

References hash_pcg4d_i().

Referenced by hash_int4_to_float4(), hash_int4_to_vec4(), and hash_pcg4d_i().

◆ hash_uint()

◆ hash_uint2()

◆ hash_uint2_to_float()

◆ hash_uint3()

◆ hash_uint3_to_float()

float hash_uint3_to_float ( uint kx,
uint ky,
uint kz )

◆ hash_uint4()

uint hash_uint4 ( uint kx,
uint ky,
uint kz,
uint kw )

◆ hash_uint4_to_float()

float hash_uint4_to_float ( uint kx,
uint ky,
uint kz,
uint kw )

◆ hash_uint_to_float()

◆ hash_vec2_to_float()

◆ hash_vec2_to_vec2()

float2 hash_vec2_to_vec2 ( float2 k)

◆ hash_vec2_to_vec3()

float3 hash_vec2_to_vec3 ( float2 k)

◆ hash_vec3_to_float()

◆ hash_vec3_to_vec2()

float2 hash_vec3_to_vec2 ( float3 k)

◆ hash_vec3_to_vec3()

float3 hash_vec3_to_vec3 ( float3 k)

◆ hash_vec4_to_float()

◆ hash_vec4_to_vec2()

float2 hash_vec4_to_vec2 ( float4 k)

◆ hash_vec4_to_vec3()

◆ hash_vec4_to_vec4()

float4 hash_vec4_to_vec4 ( float4 k)

Definition at line 230 of file gpu_shader_common_hash.bsl.hh.

References hash_vec4_to_float(), and hash_vec4_to_vec4().

Referenced by hash_vec4_to_vec4().

◆ integer_noise()

float integer_noise ( int n)

Definition at line 309 of file gpu_shader_common_hash.bsl.hh.

References float, and integer_noise().

Referenced by calc_brick_texture(), and integer_noise().

◆ wang_hash_noise()

float wang_hash_noise ( uint s)

Definition at line 320 of file gpu_shader_common_hash.bsl.hh.

References fract(), and wang_hash_noise().

Referenced by node_hair_info(), node_point_info(), and wang_hash_noise().