parent
c1c4f06a23
commit
69c3f62b9a
7 changed files with 75 additions and 131 deletions
|
|
@ -87,11 +87,12 @@ public:
|
|||
VulkanExample() : VulkanExampleBase(ENABLE_VALIDATION)
|
||||
{
|
||||
title = "Multisampling";
|
||||
settings.overlay = true;
|
||||
camera.type = Camera::CameraType::lookat;
|
||||
camera.setPerspective(60.0f, (float)width / (float)height, 0.1f, 256.0f);
|
||||
camera.setRotation(glm::vec3(0.0f, -90.0f, 0.0f));
|
||||
camera.setTranslation(glm::vec3(2.5f, 2.5f, -7.5f));
|
||||
settings.overlay = true;
|
||||
UIOverlay.rasterizationSamples = sampleCount;
|
||||
}
|
||||
|
||||
~VulkanExample()
|
||||
|
|
@ -729,12 +730,6 @@ public:
|
|||
return VK_SAMPLE_COUNT_1_BIT;
|
||||
}
|
||||
|
||||
// UI overlay configuration needs to be adjusted for this example (renderpass setup, attachment count, etc.)
|
||||
virtual void OnSetupUIOverlay(vks::UIOverlayCreateInfo &createInfo)
|
||||
{
|
||||
createInfo.rasterizationSamples = sampleCount;
|
||||
}
|
||||
|
||||
virtual void OnUpdateUIOverlay(vks::UIOverlay *overlay)
|
||||
{
|
||||
if (vulkanDevice->features.sampleRateShading) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue