Hongtae Kim пре 5 година
родитељ
комит
8996975947
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      Samples/Texture/Texture.cpp

+ 1
- 1
Samples/Texture/Texture.cpp Прегледај датотеку

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