|
@@ -324,7 +324,7 @@ public:
|
324
|
324
|
//ubo.modelMatrix.Multiply(trans.Matrix4());
|
325
|
325
|
|
326
|
326
|
//memcpy(uboBuffer->Contents(), &ubo, sizeof(ubo));
|
327
|
|
- bindSet->SetBuffer(0, uboBuffer, 0, sizeof(ubo));
|
|
327
|
+ bindSet->SetBuffer(0, uboBuffer, 0, sizeof(UBO));
|
328
|
328
|
}
|
329
|
329
|
|
330
|
330
|
bindSet->SetTexture(1, texture);
|
|
@@ -393,7 +393,7 @@ public:
|
393
|
393
|
DKAffineTransform3 trans = tm * DKAffineTransform3(quat);
|
394
|
394
|
ubo->modelMatrix = trans.Matrix4();
|
395
|
395
|
uboBuffer->Flush();
|
396
|
|
- bindSet->SetBuffer(0, uboBuffer, 0, sizeof(ubo));
|
|
396
|
+ bindSet->SetBuffer(0, uboBuffer, 0, sizeof(UBO));
|
397
|
397
|
}
|
398
|
398
|
|
399
|
399
|
encoder->SetRenderPipelineState(pipelineState);
|