baldurk
741b2c1671
Set anisotropy in textures to 1.0 on GL if driver doesn't support it
2021-03-01 15:16:27 +00:00
baldurk
612b7fed72
Avoid trying to link invalid programs with no shaders in GL
2021-03-01 12:32:24 +00:00
baldurk
9849fcd7f9
Handle AS/MS subobjects explicitly, ignore empty ones. Closes #2193
...
* If we get passed an empty/degenerate AS or MS we can ignore it, the
application is responsible for ensuring that it doesn't pass any *actual*
shaders here.
2021-03-01 11:44:37 +00:00
baldurk
c5e885a28b
Fix backwards assert condition
2021-03-01 11:39:31 +00:00
baldurk
527c662fb2
Only flip Y co-ordinates in texture viewer when clip origin is default
2021-03-01 11:38:29 +00:00
baldurk
dc35083392
Check for clip origin on GL to enable Y-flipping for output meshes
2021-03-01 11:38:04 +00:00
baldurk
839665f3ca
Add checks on D3D11 resource discard that we have a valid view/resource
2021-03-01 10:41:40 +00:00
Artyom Dangizyan
7171350638
fix heap buffer overflow
2021-03-01 10:12:34 +00:00
jeromenxp
0a3a236540
Fix compilation errors on some compilers
2021-02-24 22:44:33 +00:00
baldurk
7c62b80d89
Search explicitly for python3 with new python search
...
* This prevents the build from silently trying to use python2. We also require
development files which were previously optional.
2021-02-24 13:52:08 +00:00
baldurk
f3ae6873ea
Look for python 3.9 in cmake
2021-02-24 13:52:08 +00:00
baldurk
a1e436a8e0
Add event and structured chunk for image viewer
2021-02-24 13:52:08 +00:00
baldurk
d6e88ae4fa
Remove redundant callstack member in APIEvent
...
* We already link to the chunk index and the chunk metadata contains the
callstack, there's no need for a duplicate copy when there may be many
APIEvents in a capture
2021-02-24 13:52:07 +00:00
baldurk
728fa34acc
Move branch colouring to RDTreeView
2021-02-24 13:52:07 +00:00
baldurk
d906e23f32
Store original texture details in image viewer, rather than patched
...
* If we need to patch the details we use that for proxy texture upload, but we
still want to return the original details to the replay.
2021-02-24 13:52:07 +00:00
baldurk
4de38aef1e
Fix issue with DDS writing reading from wrong subresource index for data
2021-02-24 13:52:07 +00:00
baldurk
30dd13feb8
Pull index byte width and topology out of drawcall state
...
* These are treated as state on most APIs, only GL treats it as a drawcall
parameter.
2021-02-24 13:52:07 +00:00
baldurk
04e533742f
Adjust pitch calculation in saved DDS files to match spec. Closes #2189
...
* The spec is not particularly clear but this matches the DirectXTex behaviour
which is as close to 'official' as we'll get most likely.
2021-02-22 17:03:12 +00:00
baldurk
14983a76cd
Fix missing handling of variable descriptor counts in usage
2021-02-22 16:47:24 +00:00
baldurk
fd14fdbfa8
Add missing column of data to constant buffer array parent
2021-02-22 16:47:21 +00:00
baldurk
795d7e0910
Handle a memory object that can't be covered by a buffer. Closes #2185
...
* On some drivers like older NV hardware, there are memory types which can only
be bound to images and never to buffers, so ensure we don't try to create a
memory-spanning buffer for such allocations and avoid marking memory behind
images as written or it will become dirty in subsequent captures.
2021-02-22 12:38:43 +00:00
baldurk
11268b358a
Remap block-compressed 3D textures to 2D arrays on GL. Closes #2186
2021-02-22 12:38:43 +00:00
baldurk
3025cf66c6
Force shader feedback before clear-before-draw overlay on vulkan
...
* The shader feedback itself will potentially trigger a replay. If this happens
after the overlay is processed when fetching the pipeline state it will undo
the clear-before. To workaround this without a huge and unnecessary refactor,
we just triggere the shader feedback cache before doing a clear-before
overlay. The amount of work is the same it just happens in a different place.
2021-02-22 12:38:43 +00:00
baldurk
c6be4f7834
Fix highlighting of active thumbnail preview
...
* This was broken in fa674a59b6 where the style
overrode the widget's foreground role. Changed to only use the custom
light/dark role when the desired role is Text (or WindowText).
2021-02-22 12:38:43 +00:00
baldurk
4a379408f9
Patch VkImageFormatListCreateInfo for MSAA textures
...
* Since we're using mutable format to cast them to UINT for copies, we need to
ensure that the correct format is in the create info list.
2021-02-22 12:38:43 +00:00
Jake Turner
baf0e3ea70
#error for unknown platform in demos project
2021-02-22 10:34:11 +00:00
Jake Turner
f14130fc2d
Wrap TEST_ASSERT with do...while(0)
...
Fix compile errors when doing
if (blah) TEST_ASSERT(cond, message)
2021-02-22 10:34:11 +00:00
baldurk
a7ac9d7923
Fix DXIL reflection if array type is listed as having 0 elements
2021-02-19 17:47:06 +00:00
baldurk
4e569cfe97
Add specific error when failing to disassemble DXIL shaders
2021-02-19 15:44:57 +00:00
baldurk
f244d970c7
Properly convert fetched vertex inputs to target type in mesh output
...
* We can't fetch from a uint tbuffer into a ushort vector, so fetch as uint and
then convert to ushort.
2021-02-19 15:44:57 +00:00
Jake Turner
1f332f629f
Fix Apple platform bug in GetTickFrequency
...
The numerator and denominator were the wrong way around.
Discovered running renderdoccmd unit tests on M1 Mac Book Air
2021-02-19 10:09:10 +00:00
baldurk
698e22a5ae
Suppress warning about self-assignment that we are deliberately testing
2021-02-18 17:21:36 +00:00
baldurk
bb6b92f9a6
Compile fix for linux
2021-02-18 16:22:17 +00:00
baldurk
0f07545151
Add context menu item for toggling bookmarks on events
2021-02-18 15:41:55 +00:00
baldurk
9232921e17
Add some missing test coverage of rdcstr
2021-02-18 15:41:55 +00:00
baldurk
c3769ce569
Remove tautological test summing empty array
...
* We test above that the array is truly empty, if that passes the sum is
superfluous.
2021-02-18 15:41:54 +00:00
baldurk
552af377e6
Add a test of serialising an array of enums
2021-02-18 15:41:54 +00:00
baldurk
c470a0abf6
Remove old workaround for glslang bug
2021-02-18 15:41:54 +00:00
baldurk
2648e3e03c
Add test and fix bug with printf'ing subnormal doubles
2021-02-18 15:41:54 +00:00
baldurk
b61202af8e
Add tests of get_lastpathsep
...
* This is an internal function but it's still useful to test it independently.
2021-02-18 15:41:54 +00:00
baldurk
bafdb16b4b
Update intervals tests for better code coverage
2021-02-18 15:41:54 +00:00
baldurk
2409132989
Add unit tests of strhash() on NULL/empty strings
2021-02-18 15:41:54 +00:00
Jake Turner
7ab0cac68b
Fix C++11 error assign string literal to char*
...
error: ISO C++11 does not allow
conversion from string literal to 'GLchar *' (aka 'char *') [-Werror,-Wwritable-strings]
2021-02-18 15:41:40 +00:00
Jake Turner
eae38aad8a
Added -Werror to demos project
2021-02-18 15:41:40 +00:00
Jake Turner
b2b76486a5
Move format.cc from VULKAN_SRC to SRC
...
Support for building demos on a platform without Vulkan support
2021-02-18 15:41:40 +00:00
Jake Turner
85ab48750e
Linux compile fix after updating catch2
...
Add +#undef Always where it is required
2021-02-18 15:41:40 +00:00
Jake Turner
0a7020b557
Fix minor typo checkou -> checkout
2021-02-18 15:41:40 +00:00
Jake Turner
2e47b58b18
Minor updates to demos cmake configuration
...
Ground work for cmake compilation of demos project on non Linux platform
2021-02-18 15:41:40 +00:00
Jake Turner
46f84675f8
Test compiler to decide to add -std=c++11 option
...
Copied from renderdoc cmake configuration
2021-02-18 15:41:40 +00:00
Jake Turner
b7eebf9f68
Compile error fix for Apple clang version 12.0.0
...
candidate function not viable: 'this'
argument has type 'const TestMetadata', but method is not marked const
bool operator<(const TestMetadata &o)
2021-02-18 15:41:40 +00:00