瀏覽代碼

no message

Hongtae Kim 5 年之前
父節點
當前提交
8996975947
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Samples/Texture/Texture.cpp

+ 1
- 1
Samples/Texture/Texture.cpp 查看文件

@@ -42,7 +42,7 @@ public:
42 42
                 DKObject<DKCommandBuffer> cb = queue->CreateCommandBuffer();
43 43
                 DKObject<DKCopyCommandEncoder> encoder = cb->CreateCopyCommandEncoder();
44 44
                 encoder->CopyFromBufferToTexture(stagingBuffer,
45
-                                                 { 0, uint32_t(bytesPerPixel * width), height },
45
+                                                 { 0, width, height },
46 46
                                                  tex,
47 47
                                                  { 0,0, 0,0,0 },
48 48
                                                  { width,height,1 });