Code cleanup, simplified descriptor setup
This commit is contained in:
parent
53bb3d63f0
commit
668b9c9b57
13 changed files with 102 additions and 195 deletions
|
|
@ -1,7 +1,8 @@
|
|||
// Copyright 2020 Google LLC
|
||||
// Copyright 2023 Sascha Willems
|
||||
|
||||
Texture2D textureColorMap : register(t2);
|
||||
SamplerState samplerColorMap : register(s2);
|
||||
Texture2D textureColorMap : register(t1);
|
||||
SamplerState samplerColorMap : register(s1);
|
||||
|
||||
struct DSOutput
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,7 +1,13 @@
|
|||
// Copyright 2020 Google LLC
|
||||
// Copyright 2023 Sascha Willems
|
||||
|
||||
struct UBO
|
||||
{
|
||||
float4x4 projection;
|
||||
float4x4 model;
|
||||
float4 lightPos;
|
||||
float tessAlpha;
|
||||
float tessStrength;
|
||||
float tessLevel;
|
||||
};
|
||||
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,4 +1,5 @@
|
|||
// Copyright 2020 Google LLC
|
||||
// Copyright 2023 Sascha Willems
|
||||
|
||||
struct UBO
|
||||
{
|
||||
|
|
@ -7,12 +8,13 @@ struct UBO
|
|||
float4 lightPos;
|
||||
float tessAlpha;
|
||||
float tessStrength;
|
||||
float tessLevel;
|
||||
};
|
||||
|
||||
cbuffer ubo : register(b1) { UBO ubo; }
|
||||
cbuffer ubo : register(b0) { UBO ubo; }
|
||||
|
||||
Texture2D textureDisplacementMap : register(t2);
|
||||
SamplerState samplerDisplacementMap : register(s2);
|
||||
Texture2D textureDisplacementMap : register(t1);
|
||||
SamplerState samplerDisplacementMap : register(s1);
|
||||
|
||||
struct HSOutput
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue