Goshido / android-vulkan

This repository is a project for learning Vulkan API, constraint based 3D physics, Lua scripting, spatial sound rendering, HTML+CSS UI rendering.
30 stars 3 forks source link

Explicit types in shader code #23

Closed Goshido closed 2 years ago

Goshido commented 2 years ago

DirectX Shader Compile v1.6.2112.10024 supports C++-ish types. So it's needed to use them in all shaders for consistency.

Type Replacement
float float32_t
float2 float32_t2
float3 float32_t3
float4 float32_t4
float3x3 float32_t3x3
half float16_t
half3 float16_t3
matrix float32_t4x4
uint uint32_t
Goshido commented 2 years ago

Done.