Browse Source

UV 좌표 정리

Heedong Arkiny Lee 5 years ago
parent
commit
cfaad9195b
1 changed files with 4 additions and 10 deletions
  1. 4
    10
      Samples/ComputeShader/ComputeShader.cpp

+ 4
- 10
Samples/ComputeShader/ComputeShader.cpp View File

@@ -13,10 +13,10 @@ private:
13 13
 
14 14
     DKArray<UVQuad::Vertex> vertices =
15 15
     {
16
-        { { 1.0f, 1.0f, 0.0f }, { 1.0f, 1.0f } },
17
-        { { -1.0f, 1.0f, 0.0f }, { 0.0f, 1.0f } },
18
-        { { -1.0f, -1.0f, 0.0f }, { 0.0f, 0.0f } },
19
-        { { 1.0f, -1.0f, 0.0f }, { 1.0f, 0.0f } }
16
+        { { 1.0f, 1.0f, 0.0f }, { 1.0f, 0.0f } },
17
+        { { -1.0f, 1.0f, 0.0f }, { 0.0f, 0.0f } },
18
+        { { -1.0f, -1.0f, 0.0f }, { 0.0f, 1.0f } },
19
+        { { 1.0f, -1.0f, 0.0f }, { 1.0f, 1.0f } }
20 20
     };
21 21
 
22 22
     DKArray<uint32_t> indices = { 0,1,2,2,3,0 };
@@ -185,12 +185,6 @@ public:
185 185
                 descriptorSetPostCompute->SetBuffer(0, uniformBuffer, 0, sizeof(UBO));
186 186
             }
187 187
         }
188
-
189
-
190
-
191
-
192
-        //descriptorSetPreCompute->SetTexture(1, texture);
193
-        //descriptorSetPreCompute->SetSamplerState(1, sampler);
194 188
     }
195 189
 
196 190
     DKGpuBuffer* UniformBuffer() { return uniformBuffer; }