Skip to content

Clash in Vulkan "CreateInstance()" Times #1844

Closed Answered by Perksey
kgs233 asked this question in Q&A
Discussion options

You must be logged in to vote

The problem appears to be

        IntPtr SDLExtensions = SilkMarshal.AllocateString((int)SDLExtensionCount);

This should be

        IntPtr SDLExtensions = SilkMarshal.Allocate((int)SDLExtensionCount * sizeof(nint));

You are attempting to write SDLExtensionCount pointers into memory of size SDLExtensionCount. So for example, if SDL wants to enable 2 extensions, you are attempting to write 8-16 bytes into a 2 byte buffer.

Replies: 1 comment 9 replies

Comment options

You must be logged in to vote
9 replies
@Perksey
Comment options

@Perksey
Comment options

@kgs233
Comment options

@Perksey
Comment options

Answer selected by kgs233
@Perksey
Comment options

@kgs233
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1843 on December 16, 2023 19:50.