baldurk
65581ca322
Subtract per-draw index byte offset from index buffer size
2022-08-01 20:40:03 +01:00
baldurk
a33eb5fcb1
Allow reinterpreting formats of constant blocks that have bytes backing
...
* Even without a true buffer, as long as we have access to the bag of bytes and
a non-opaque layout we can allow reinterpreting.
2022-07-25 10:08:59 +01:00
baldurk
5d51b524c6
Fix interpreting and declaring buffer formats that include pointers
2022-07-25 10:08:59 +01:00
baldurk
c98b16fd8c
Fix compile warnings
2022-07-22 18:16:09 +01:00
baldurk
fda5c4819a
Scroll shader viewer to entry point file & line using debug info
2022-07-22 16:10:59 +01:00
baldurk
c053912608
Add explicit DXIL shader encoding
2022-07-22 16:10:59 +01:00
baldurk
234262649f
Fix calculation of small mip co-ordinates for NPOT textures
2022-07-15 18:07:08 +01:00
baldurk
c3a6a8a9d6
If there's no fixed data don't fetch the whole buffer
2022-07-14 14:01:08 +01:00
baldurk
7bdf26d329
Implement location tracking and goto for GS printfs
...
* We can't debug geometry shaders but we can scroll to them, as long as we have
the primitive. We can't differentiate instances currently without passing that
data through from the VS (and through tessellation, if it exists).
* This also disables the debug and goto buttons for printfs from shader stages
that don't support those operations.
2022-07-11 13:02:23 +01:00
baldurk
1fdb7db07e
Don't use shader compile flags when editing decompiled shader
2022-07-04 14:22:59 +01:00
baldurk
c817b6f9ff
Fix clang warning
2022-06-30 14:49:02 +01:00
baldurk
7990254bc0
Avoid copying shader debug states, only move them
2022-06-30 13:51:26 +01:00
baldurk
b9e5e2fd5c
Use QList for variables in ShaderViewer
...
* Using a linked list instead of a vector makes insert/erase operations for
variables being created and destroyed significantly faster.
2022-06-30 13:24:36 +01:00
baldurk
20f42feab4
Improve mapping of breakpoints to disassembly & source
...
* We breakpoint directly on source/disassembly lines rather than trying to map
to instructions that may get stepped over and skipped.
2022-06-22 20:04:42 +01:00
baldurk
8838a878e8
Show the current event in texture viewer usage context menu
2022-06-22 20:04:42 +01:00
baldurk
2020a71cf1
Account for flip in face culling winding for GL clip origin
...
* The GL clip origin when changed from lower left to upper left will also invert
the face culling sense. This is deliberate to counteract the fact that
otherwise CW wound triangles would be CCW wound, so the flip means that if
GL_CCW is the front face state and back faces are culled, then visibly CCW
wound triangles will be culled.
2022-06-21 12:51:31 +01:00
Jake Turner
f5a2bae23c
Set the enable state for Save, Delete actions
...
Disable the actions when no captures are selected
2022-06-20 10:12:40 +01:00
Jason Chen
825f1c69fe
Fix typo
2022-06-17 16:09:22 +01:00
baldurk
1eee00f01d
Remove unnecessary sRGB conversions
2022-06-16 16:30:00 +01:00
baldurk
e50e114cb7
Show error/unavailable status for postvs data in mesh view. Refs #2595
2022-06-06 18:35:29 +01:00
baldurk
fcc7eada44
Ignore whitespace when matching variable tooltip expressions
2022-06-02 17:01:48 +01:00
baldurk
77232e0288
Fix lookup of HLSL direct cbuffer variable references
2022-05-31 13:06:42 +01:00
baldurk
f01dfbecc1
Add a python extension function to access picked location. Refs #2065
2022-05-31 11:26:59 +01:00
baldurk
b3e8bdb0f5
Only show base EID not EID range when exporting actions
2022-05-30 15:58:30 +01:00
baldurk
ba5f806ba1
Set constant buffer generated format as the auto format
2022-05-27 10:43:55 +01:00
baldurk
c77261f0f3
Display struct/enum typenames when available in buffer viewer
2022-05-25 17:18:31 +01:00
baldurk
d44d9e4857
Show bitpacking in offset column in buffer viewer
2022-05-25 17:02:27 +01:00
baldurk
9bde5324b6
Improve handling of enums in buffer viewer fixed variables
2022-05-25 17:02:10 +01:00
baldurk
397088a813
Remove some cbuffer considerations for regular buffer views
2022-05-23 16:33:21 +01:00
baldurk
444515c67a
Always treat vertex buffer formats as scalar packed
2022-05-23 16:33:00 +01:00
baldurk
c5a588d2e4
Fix texture-as-buffer view format string generation
2022-05-23 14:43:08 +01:00
baldurk
31feedd16d
Remove ShaderConstantDescriptor, inline into ShaderConstantType
...
* This struct was redundant isnce it was only ever used in the type and not
meaningfully accessed directly.
2022-05-20 14:15:31 +01:00
baldurk
2d8687e28e
Show parse errors on the line they occur
2022-05-20 14:15:31 +01:00
baldurk
abe645f031
Add support for saving and loading structure definitions
2022-05-20 14:15:30 +01:00
baldurk
4bb54d00dd
Show visible offsets and (optionally) padding in buffers. Closes #1664
2022-05-20 14:15:30 +01:00
baldurk
43fa3cd94b
Use BufferViewer for viewing constant buffers
...
* Unifying these views means that constant buffers have all the same
reformatting and it avoids having multiple paths for what is now effectively
the same control (a buffer can either have fixed data, repeating data, or
both)
2022-05-20 14:15:30 +01:00
baldurk
fcdcc9714b
Implement export options for fixed items in buffer view
2022-05-20 13:37:27 +01:00
baldurk
a36516c8a5
Explicitly handle unbounded arrays and display declared fixed vars
...
* GL and Vulkan allow buffers to have fixed variables before a trailing AoS
unbounded array. These fixed variables can't be easily displayed in a table
and previously we skipped them. Now we display these in a tree format.
* We also support formats which don't have an unbounded array at all and display
these just with the tree. This will allow the BufferViewer to subsume the
capabilities of the ConstantBufferPreviewer (though it needs to handle opaque
non-buffer-backed variables, and slot-following).
2022-05-20 13:37:26 +01:00
baldurk
ac886728ca
Don't use docking UI for raw buffer viewer mode
2022-05-20 13:37:26 +01:00
baldurk
97a3943cdd
Use packing rules when generating format strings for structs
...
* This allows the calling code to pass a hint of what packing is known or likely
to be used, meaning less generated manual offsetting/padding when the implicit
rules cover it.
2022-05-20 13:37:26 +01:00
baldurk
4dc7b3f8b7
Process packing rules when parsing formatting strings
...
* Instead of having a global tight/non-tight we now let the format string
specify the packing rules (defaulting to scalar - i.e. tight packing as
before), and use the resulting properties to calculate packing.
2022-05-20 13:37:26 +01:00
baldurk
cee4b25b28
Allow specifying offsets and struct strides manually with offsets
...
* Use these when generating buffer formatter strings instead of declaring manual
padding variables.
2022-05-20 13:37:26 +01:00
baldurk
a42f9edc3a
Add annotation for binary view
2022-05-20 13:37:26 +01:00
baldurk
0890afd70e
Specify rgb, hex, unorm/snorm and format packing as annotations
2022-05-20 13:37:26 +01:00
baldurk
cb49f21f2a
Support enums in buffer formatter
2022-05-20 13:37:26 +01:00
baldurk
2399c9d136
Add support for bitfield packing in the buffer viewer formatting
2022-05-20 13:37:25 +01:00
baldurk
cef00a102b
Add struct VarType and combine flags into single field
...
* This is not a space saving right now, but allows more flags to be added
without adding more storage.
2022-05-20 13:37:25 +01:00
baldurk
2fc0866c9f
Fix display of register names for matrix source variables
2022-05-09 11:32:11 +01:00
baldurk
8d34ea577d
Add some missing tooltips for event browser location buttons
2022-05-06 13:17:09 +01:00
baldurk
e5000ff91b
Handle source variables that map to non-existant debug variables
2022-05-04 15:47:04 +01:00