MethanePowered / MethaneAsteroids

:ringed_planet: Asteroids sample demonstrating multi-threaded rendering of large number random-generated asteroids with Methane Kit framework using DirectX 12, Vulkan and Metal
https://github.com/MethanePowered/MethaneKit
Apache License 2.0
16 stars 1 forks source link

GitHub Actions build for Windows DirectX fails on DXC HLSL compilation when shaders validation is enabled #3

Closed egorodet closed 2 years ago

egorodet commented 2 years ago

Describe the bug Windows DirectX build fails on DXC HLSL shader compilation with Pipeline State validation error. Shader compilation passes when shader validation is manually disabled (as the result compiled shader is not usable). The same works fine in Azure Pipelines with shader validation enabled.

Steps To Reproduce Steps to reproduce the behavior:

  1. Go to .github/workflows/asteroids-build.yml:117 and change cmake option -DMETHANE_SHADERS_VALIDATION_ENABLED:BOOL=OFF to ON
  2. Commit and push changes
  3. Wait for GitHub Actions to run, see Windows DirectX builds failures:
    CUSTOMBUILD : error : Container part 'Pipeline State Validation' does not match expected for module. Use /Zi for source location. [D:\a\MethaneAsteroids\MethaneAsteroids\Build\Output\VS2022-Win64-DX-Default\Build\Modules\Simulation\92cb9df0f32d066bd409e0fe32d11575.vcxproj]
    Validation failed.

Expected behavior DXC shader compilation should work normally with validation enabled, as it works in Azure Pipelines.