added ui rendering

This commit is contained in:
2025-07-14 21:56:10 +03:00
parent 7c2b65d079
commit d6100a8752
17 changed files with 254 additions and 33 deletions

View File

@@ -41,19 +41,19 @@ SamplerState mlGetSampler()
_mlGetSampler();
};
#define DECLARE_CBUFFER(b) \
[[vk::binding(b)]] cbuffer cbuffer_##b : register(t##b)
#define DECLARE_CBUFFER(n) \
[[vk::binding(n)]] cbuffer cbuffer_##b : register(b##n)
#define DECLARE_CONSTANTS() \
[[vk::push_constant]] \
cbuffer cbuffer_constants : register(t29)
cbuffer cbuffer_constants : register(b29)
#define FIX_VERTEX_POSITION(g) g = float4(g.x, -g.y, g.z, g.w);
#elif defined(__SPIRV__)
#define DECLARE_TEXTURES(b) \
[[vk::binding(b)]] \
#define DECLARE_TEXTURES(n) \
[[vk::binding(n)]] \
Sampler2D g_textures[]; \
float4 SampleTexture(uint32_t binding, float2 uv) \
{ \