Code Monkey home page Code Monkey logo

Comments (2)

Zorro666 avatar Zorro666 commented on June 14, 2024

The construction of using DebugValue to index into a vector and using OpAccessChain through a pointer to a structure member to modify the y-component is not currently handled by the RenderDoc source level debugging.

Source

    t.memberB = float3(1, 2, 3);
    t.memberB.y = 4.0;

SPIRV slang

%167 = OpAccessChain %_ptr_Function_v3float %t %int_1
       OpStore %167 %168
%175 = OpAccessChain %_ptr_Function_float %167 %int_1
       OpStore %175 %float_4

For reference: SPIRV glslang construction which does work with RenderDoc source debugging

%86 = OpAccessChain %_ptr_Function_v3float %t %int_1
      OpStore %86 %84
%89 = OpAccessChain %_ptr_Function_float %t %int_1 %uint_1
      OpStore %89 %float_4

from renderdoc.

csyonghe avatar csyonghe commented on June 14, 2024

The difference with glslang and slang's own spirv backend (enabled with -emit-spirv-directly in slangc) is that Slang uses more SSA registers than explicit OpVars and is relying on OpDebugValue to update a debug variable. Therefore we don't use OpDebugDeclare to link a debug variable with an actual variable as done in glslang, but rely more heavily on OpDebugValue.

from renderdoc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.