Skip to content

[SPIRV-Cross] Question: missing GetSprivData() and GetSpirvWordCount() ? #1880

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

You must be logged in to vote

I think you're reading the example a bit too literally. get_spirv_data and get_spirv_word_count are placeholders to replace with your own code. In C# this would be something like:

var spirvSpan = MemoryMarshal.Cast<byte, uint>(spirvByteArray);
var wordCount = spirvSpan.Count;
fixed (uint* spirv = spirvSpan)
{
    // ...
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Arugin
Comment options

Answer selected by Arugin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #1879 on January 04, 2024 20:21.