DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Suggestion: Improved human-readable values in disassembly

Open jeffnn opened this issue 5 years ago • 0 comments

  •   a DXIL comment pointing to the original file/line/hlsl snippet  ? (rather then having to crawl through metadata)
    
  • e.g.: %270 = call float @dx.op.binary.f32(i32 35, float 0x3F1A36E2E0000000, float %269), !pix-dxil-inst-num !557, !pix-dxil-reg !558 ; FMax(a,b) : the real float value, in this case 0.0001 (with optional rounding?) could be displayed in the comment
  • Generally more hardcoded values decoding in the comment, like is already done for the unary & binary operators. For example the opcode value for dx.op.storeOutput.f32 (maybe it is the f32 part of the instruction, but I couldn’t find this info in the doc)
  • For store & loads from buffers/inputs/outputs : add in the comment the friendly name of the resource
  • Same request for the Resource Bindings and Output Dependencies sections

jeffnn avatar Aug 05 '20 16:08 jeffnn