Open Karpov-Ruslan opened 3 months ago
Also, can you allow implicit conversion:
int
<-> int32_t
uint
<-> uint32_t
float
<-> float32_t
double
<-> float64_t
and derivative vec
cases:
ivecn
<-> i32vecn
uvecn
<-> u32vecn
vecn
<-> f32vecn
dvecn
<-> f64vecn
Hi @Karpov-Ruslan Sorry for the late replay. I'm sure about implementing extensions. I didn't get into it but it's not straightforward at all.
Can you add integer and float suffixes according to GL_EXT_shader_explicit_arithmetic_types extension:
Integer suffixes (299 line):
Float suffixes (354 line):
The list of additional suffixes (I use only uppercase letters, but lowercase options need to be considered):
L
,S
,UL
,US
for integer types.HF
for float types.float32_t var = 1.0F;
- an error occurs: "Incompatible types in initialization (and no available implicit conversion).", butfloat32_t var = 1.0LF;
code line does not cause any errors. However,LF
suffix relates tofloat64_t
/double
types.