Code cleanup, simplified, added code comments

This commit is contained in:
Sascha Willems 2024-01-13 15:59:19 +01:00
parent 4ae651ce51
commit 67820604b8
8 changed files with 14 additions and 2 deletions

View file

@ -1,16 +1,19 @@
// Copyright 2020 Google LLC
// Copyright 2023 Sascha Willems
Texture2D textureColor : register(t1);
SamplerState samplerColor : register(s1);
struct UBO
{
float4x4 projection;
float4x4 model;
float4 outlineColor;
float outlineWidth;
float outline;
};
cbuffer ubo : register(b2) { UBO ubo; }
cbuffer ubo : register(b0) { UBO ubo; }
float4 main([[vk::location(0)]] float2 inUV : TEXCOORD0) : SV_TARGET
{

View file

@ -1,4 +1,5 @@
// Copyright 2020 Google LLC
// Copyright 2023 Sascha Willems
struct VSInput
{
@ -10,6 +11,9 @@ struct UBO
{
float4x4 projection;
float4x4 model;
float4 outlineColor;
float outlineWidth;
float outline;
};
cbuffer ubo : register(b0) { UBO ubo; }