added ui rendering
This commit is contained in:
@@ -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) \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user