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

Crash with spirv/win32/hlsl #1411

Open
CedricGuillemet opened this issue Aug 23, 2024 · 1 comment · May be fixed by #1412
Open

Crash with spirv/win32/hlsl #1411

CedricGuillemet opened this issue Aug 23, 2024 · 1 comment · May be fixed by #1412
Assignees
Milestone

Comments

@CedricGuillemet
Copy link
Contributor

when adding a new NME test, assertion with spirv:

{
    "title": "NME Multi Build",
    "playgroundId": "#D8AK3Z#104",
    "referenceImage": "nme-multi-build.png"
},
File: E:\dev\babylon\BNExr\build\_deps\spirv...\spirv_hlsl.cpp
Line: 20534

Expression: false
@CedricGuillemet
Copy link
Contributor Author

in VS hlsl:

Texture2D<float4> BumptextureTextureTexture : register(t3);
SamplerState BumptextureTexture : register(s3);
Texture2D<float4> AlbedotextureTextureTexture : register(t1);
SamplerState AlbedotextureTexture : register(s1);

in PS hlsl:

Texture2D<float4> BumptextureTextureTexture : register(t14);
SamplerState BumptextureTexture : register(s14);
Texture2D<float4> AlbedotextureTextureTexture : register(t12);
SamplerState AlbedotextureTexture : register(s12);

each texture is present in VS and PS (even if not used) but registers are different and don't overlap between VS and PS. So, max bindable texture is 8 ?

@thomlucc thomlucc added this to the 8.0 milestone Aug 27, 2024
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

Successfully merging a pull request may close this issue.

2 participants