|
|
|
|
18
|
{
|
18
|
{
|
19
|
DKObject<DKData> vertData = resourcePool.LoadResourceData("triangle.vert.spv");
|
19
|
DKObject<DKData> vertData = resourcePool.LoadResourceData("triangle.vert.spv");
|
20
|
DKObject<DKData> fragData = resourcePool.LoadResourceData("triangle.frag.spv");
|
20
|
DKObject<DKData> fragData = resourcePool.LoadResourceData("triangle.frag.spv");
|
21
|
- DKShader vertShader(vertData, DKShader::Vertex);
|
|
|
22
|
- DKShader fragShader(fragData, DKShader::Fragment);
|
|
|
|
|
21
|
+ DKShader vertShader(vertData);
|
|
|
22
|
+ DKShader fragShader(fragData);
|
23
|
|
23
|
|
24
|
DKObject<DKGraphicsDevice> device = DKGraphicsDevice::SharedInstance();
|
24
|
DKObject<DKGraphicsDevice> device = DKGraphicsDevice::SharedInstance();
|
25
|
DKObject<DKShaderModule> vertShaderModule = device->CreateShaderModule(&vertShader);
|
25
|
DKObject<DKShaderModule> vertShaderModule = device->CreateShaderModule(&vertShader);
|