Skip to content

Commit

Permalink
Fix shaderSubgroupClock validation error.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPSnoopy committed Mar 28, 2021
1 parent c411287 commit abd83d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/RayTracer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,16 @@ void RayTracer::SetPhysicalDevice(
});

// Opt-in into mandatory device features.
VkPhysicalDeviceShaderClockFeaturesKHR shaderClockFeatures = {};
shaderClockFeatures.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR;
shaderClockFeatures.pNext = nextDeviceFeatures;
shaderClockFeatures.shaderSubgroupClock = true;

deviceFeatures.fillModeNonSolid = true;
deviceFeatures.samplerAnisotropy = true;
deviceFeatures.shaderInt64 = true;

Application::SetPhysicalDevice(physicalDevice, requiredExtensions, deviceFeatures, nextDeviceFeatures);
Application::SetPhysicalDevice(physicalDevice, requiredExtensions, deviceFeatures, &shaderClockFeatures);
}

void RayTracer::OnDeviceSet()
Expand Down

0 comments on commit abd83d5

Please sign in to comment.