瀏覽代碼

no message

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

+ 4
- 0
Samples/Texture/Texture.cpp 查看文件

@@ -67,7 +67,11 @@ public:
67 67
 
68 68
         // create texture
69 69
         DKObject<DKTexture> texture = LoadTexture2D(queue, resourcePool.LoadResourceData("textures/deathstar3.png"));
70
+        // create sampler
71
+        DKSamplerDescriptor samplerDesc = {};
72
+        DKObject<DKSamplerState> sampler = device->CreateSamplerState(samplerDesc);
70 73
 
74
+        // create shaders
71 75
 		DKObject<DKShaderModule> vertShaderModule = device->CreateShaderModule(&vertShader);
72 76
 		DKObject<DKShaderModule> fragShaderModule = device->CreateShaderModule(&fragShader);
73 77