Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Diligent Engine: ERROR: Debug assertion failed in DXCompiler.cpp, line 1384 #633

Open
XinePan opened this issue Oct 30, 2024 · 4 comments
Open

Comments

@XinePan
Copy link

XinePan commented Oct 30, 2024

Diligent Engine: ERROR: Debug assertion failed in Diligent::`anonymous-namespace'::DXCompilerImpl::PatchResourceDeclaration(), file DXCompiler.cpp, line 1384:
Debug expression failed:
DXIL[BindingRecordStart] == ','

Assert with these shader bytecode on debug mode. It run on Release mode.
It seems that there is a bug in function PatchResourceDeclaration
shader_bytecode.zip

@TheMostDiligent
Copy link
Contributor

Did you provide compiled bytecode?
Diligent requires that shaders are compiled with reflection information.

@XinePan
Copy link
Author

XinePan commented Oct 30, 2024

shader_buildscript.zip

Compiler cmd:

%dxcCmd% /Zi /E"vsmain" /Vn"g_sm6_Wave_VS" /Tvs_6_0 /Fh"sm6_wave_vs.hlsl.h" /nologo sm6_wave.txt
%dxcCmd% /D_WAVE_OP /Zi /E"psmain" /Vn"g_sm6_Wave_PS" /Tps_6_0 /Fh"sm6_wave_ps.hlsl.h" /nologo sm6_wave.txt

@TheMostDiligent
Copy link
Contributor

This error happens when you create the PSO?
Can you provide the code to reproduce this?

@XinePan
Copy link
Author

XinePan commented Oct 30, 2024

WaveOpTest.zip

Base on DiligentSamples:

if(NOT ${DILIGENT_BUILD_SAMPLE_BASE_ONLY} AND TARGET Diligent-SampleBase)
    add_subdirectory(Samples)
    add_subdirectory(Tutorials)
    add_subdirectory(WaveOpTest)
endif()

And another question:

I am testing the wave op. When I run the program, the picture flashes.

Is there something wrong with the code?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants