Kore 3
Loading...
Searching...
No Matches
cpucompute.h
1#ifndef KORE_UTIL_CPUCOMPUTE_HEADER
2#define KORE_UTIL_CPUCOMPUTE_HEADER
3
4#include <kore3/math/vector.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct kore_float2x4 {
17
23
30
31typedef struct kore_int2x4 {
35
36typedef struct kore_int3x4 {
41
42typedef struct kore_int4x4 {
48
49typedef struct kore_uint2x4 {
53
54typedef struct kore_uint3x4 {
59
66
67kore_float4 kore_cpu_compute_create_float4(float value0, float value1, float value2, float value3);
68
69kore_float32x4 kore_cpu_compute_sin_f1_x4(kore_float32x4 value);
70
71kore_float32x4 kore_cpu_compute_length_f2_x4(kore_float2x4 value);
72
73kore_int2x4 kore_cpu_compute_int2_u2_x4(kore_uint2x4 value);
74
75kore_float2x4 kore_cpu_compute_create_float2_i2_x4(kore_int2x4 value);
76
77kore_float32x4 kore_cpu_compute_create_float_u1_x4(kore_uint32x4 value);
78
79kore_float4x4 kore_cpu_compute_create_float4_f1_f1_f1_f1_x4(kore_float32x4 value0, kore_float32x4 value1, kore_float32x4 value2, kore_float32x4 value3);
80
81kore_int2x4 kore_cpu_compute_sub_i2_i1_x4(kore_int2x4 value0, kore_int32x4 value1);
82
83kore_float2x4 kore_cpu_compute_div_f2_f1_x4(kore_float2x4 value0, kore_float32x4 value1);
84
85kore_uint32x4 kore_cpu_compute_add_u1_u1_x4(kore_uint32x4 value0, kore_uint32x4 value1);
86
87kore_float32x4 kore_cpu_compute_mult_f1_f1_x4(kore_float32x4 value0, kore_float32x4 value1);
88
89kore_float32x4 kore_cpu_compute_add_f1_f1_x4(kore_float32x4 value0, kore_float32x4 value1);
90
91kore_float32x4 kore_cpu_compute_sub_f1_f1_x4(kore_float32x4 value0, kore_float32x4 value1);
92
93kore_int32x4 kore_cpu_compute_mult_u1_i1_x4(kore_uint32x4 value0, kore_int32x4 value1);
94
95kore_int32x4 kore_cpu_compute_add_u1_i1_x4(kore_uint32x4 value0, kore_int32x4 value1);
96
97kore_uint2x4 kore_cpu_compute_swizzle_xy_u3_x4(kore_uint3x4 value);
98
99kore_uint32x4 kore_cpu_compute_swizzle_x_u2_x4(kore_uint2x4 value);
100
101kore_uint32x4 kore_cpu_compute_swizzle_y_u2_x4(kore_uint2x4 value);
102
103kore_uint32x4 kore_cpu_compute_swizzle_x_u3_x4(kore_uint3x4 value);
104
105kore_uint32x4 kore_cpu_compute_swizzle_y_u3_x4(kore_uint3x4 value);
106
107float kore_cpu_compute_sin_f1_x1(float value);
108
109float kore_cpu_compute_length_f2_x1(kore_float2 value);
110
111kore_int2 kore_cpu_compute_int2_u2_x1(kore_uint2 value);
112
113kore_float2 kore_cpu_compute_create_float2_i2_x1(kore_int2 value);
114
115float kore_cpu_compute_create_float_u1_x1(uint32_t value);
116
117kore_float4 kore_cpu_compute_create_float4_f1_f1_f1_f1_x1(float value0, float value1, float value2, float value3);
118
119kore_int2 kore_cpu_compute_sub_i2_i1_x1(kore_int2 value0, int value1);
120
121kore_float2 kore_cpu_compute_div_f2_f1_x1(kore_float2 value0, float value1);
122
123uint32_t kore_cpu_compute_add_u1_u1_x1(uint32_t value0, uint32_t value1);
124
125float kore_cpu_compute_mult_f1_f1_x1(float value0, float value1);
126
127float kore_cpu_compute_add_f1_f1_x1(float value0, float value1);
128
129float kore_cpu_compute_sub_f1_f1_x1(float value0, float value1);
130
131int kore_cpu_compute_mult_u1_i1_x1(uint32_t value0, int value1);
132
133int kore_cpu_compute_add_u1_i1_x1(uint32_t value0, int value1);
134
135kore_uint2 kore_cpu_compute_swizzle_xy_u3_x1(kore_uint3 value);
136
137uint32_t kore_cpu_compute_swizzle_x_u2_x1(kore_uint2 value);
138
139uint32_t kore_cpu_compute_swizzle_y_u2_x1(kore_uint2 value);
140
141uint32_t kore_cpu_compute_swizzle_x_u3_x1(kore_uint3 value);
142
143uint32_t kore_cpu_compute_swizzle_y_u3_x1(kore_uint3 value);
144
145#ifdef __cplusplus
146}
147#endif
148
149#endif
Provides 128bit four-element floating point SIMD operations which are mapped to equivalent SSE or Neo...
Provides 128bit four-element signed 32-bit integer SIMD operations which are mapped to equivalent SSE...
Definition vector.h:14
Definition cpucompute.h:13
Definition types.h:172
Definition cpucompute.h:18
Definition vector.h:25
Definition cpucompute.h:24
Definition vector.h:32
Definition cpucompute.h:31
Definition types.h:194
Definition cpucompute.h:36
Definition cpucompute.h:42
Definition vector.h:50
Definition cpucompute.h:49
Definition types.h:198
Definition vector.h:55
Definition cpucompute.h:54
Definition cpucompute.h:60
Provides 128bit four-element unsigned 32-bit integer SIMD operations which are mapped to equivalent S...
Provides basic vector types.