locked
Internal HLSL-compiler error RRS feed

  • Question

  • Hello,

    This is probably not the right way to submit bugs about the HLSL-compiler, but I couldn't find a better channel. I get an internal compiler-error with the following construct,

    RWStructuredBuffer<uint> Buffer1 : register(u6);
    RWStructuredBuffer<uint> Buffer2 : register(u7);

    bool
    AllocIdx(out uint Idx)
    {
     Idx = Buffer1.IncrementCounter();

     uint CntMax;
     uint Stride;
     Buffer1.GetDimensions(CntMax, Stride); //Doesn't work
    // Buffer2.GetDimensions(CntMax, Stride); //Works
     return Idx < CntMax;
    }

    the problem seems to stem from invoking IncrementCounter and GetDimensions on the same RWStructuredBuffer-object.

     

    Best regards,

     

    Staffan Langin

    • Moved by Anna Cc Tuesday, August 27, 2013 6:30 AM
    Sunday, August 25, 2013 10:11 AM

All replies

  • Hi Staffan Langin,

    Welcome to the MSDN forum!

    This forum is to discuss problems of C++ development. Your question is not related to the topic of this forum. In order to get a better solution, I suggest you can reopen it on Xbox LIVE Indie Games Forums.

    Here is the link: http://xboxforums.create.msdn.com/forums/default.aspx?GroupID=7

    Thanks for your understanding.


    Sunny Cao
    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, August 27, 2013 6:30 AM