baldurk
e32e26eb83
Save texture viewer dock layout & background colour in persist data
2016-10-07 15:58:50 +02:00
baldurk
e64c666883
Allow configuring a callback to create tool windows on-demand
...
* This means we can start with an empty manager, load a layout, and just
create the needed windows as we go according to what the layout needs.
2016-10-07 15:58:50 +02:00
baldurk
f8b7f0ca87
Serialise area objects as [name, data] pairs, with custom persist data
...
* This works by presuming a property 'persistData' set up on an object.
If configured, it will be set and restored in the data value.
2016-10-07 15:58:49 +02:00
baldurk
560fe1a120
Save and restore ToolWindowManager state directly as QVariantMap
2016-10-07 15:58:49 +02:00
baldurk
b87968ae21
If a wrapper should be maximised, re-maximise it on restore to force
2016-10-07 15:58:48 +02:00
baldurk
bd7b3e3399
Save wrapper and splitter state as base64 so it encodes to JSON
2016-10-07 15:58:47 +02:00
baldurk
4d2f27d905
Only save direct child splitters in a wrapper
2016-10-07 15:58:47 +02:00
baldurk
b96d49190c
Avoid naming manually connected slots on_x_y()
2016-10-07 15:58:45 +02:00
baldurk
bfac4adfb8
Expose full logging to UI layer, pipe Qt messages etc into main logs
2016-10-07 15:58:45 +02:00
baldurk
ccfa1ceaed
Add some utility functions to rdctype::array/str
...
* Avoids the need to directly reference .elems to cast to const char*
for strings, and has begin()/end() for C++11 foreach loops
2016-10-07 15:58:44 +02:00
baldurk
a901fc0d5b
Fix isRunning check - just wait for m_Thread to be NULL
2016-10-07 15:58:43 +02:00
Michael Rennie
149e83ba76
Set same default API level for ANDROID_ABI=armeabi-v7a as for arm64-v8a.
...
Also switch to 32bit build by default, as almost all content is 32bit.
2016-10-07 15:10:42 +02:00
baldurk
09e3d9a81c
When remapping down, read subsequently from mip 0. Refs #390
2016-10-06 18:09:26 +02:00
baldurk
d2b2e77d35
Clean up GL/Vulkan display shader, fixes remapping of mips. Refs #390
2016-10-06 18:09:06 +02:00
baldurk
44706c3f7b
Need to remap for 8-bit formats with less than 4 channels
2016-10-06 18:07:02 +02:00
baldurk
aadde675a9
Fix crash when switching back to local context with connections open
2016-10-06 15:24:18 +02:00
baldurk
5b02be386f
Don't read off the end of IB when up-converting to mesh pick
...
* This could lead to a crash at least on vulkan, where the memcpy reads
off the end of the data. On GL this could mean the index data doesn't
get read back.
2016-10-06 15:18:26 +02:00
baldurk
a52ca923b2
Check for File I/O failures when opening log in replay driver.
...
* I got a crash report that seemed to have a file become invalid or
unavailable in between it being opened to determine the driver (which
already handles I/O failures) and the driver opening it. This check
just makes that more robust
2016-10-06 14:36:24 +02:00
baldurk
fdedbaf103
Fix potential crash creating a brush for an empty rect
2016-10-06 14:15:37 +02:00
Michael Rennie
6931d0b954
Tool menu option to start the Android remote server.
...
The option launches a batch file that starts the apk in remoteserver mode,
as well as taking care of port forwarding.
Also have a batch file for manually starting and capturing an APK by its
package name. They are both copied to the TargetDir as a PostBuildEvent.
2016-10-06 13:14:42 +02:00
Adrian Bucur
eaa85bf1fa
Enable SPIR-V External Disassembler Tool
...
- Added the ability to select an external SPIR-V disassembler and to use
it for editing any of the shaders in the pipeline.
Tested with SPIRV-Cross (https://github.com/KhronosGroup/SPIRV-Cross )
Fragment, Vertex, Geometry, Compute shaders
2016-10-06 13:02:23 +02:00
baldurk
2c9de11a89
Fix histogram slice sampling for 3D textures
...
* This changed earlier when the mip/slice indexing changed to be more
sensible.
2016-10-06 12:52:54 +02:00
baldurk
2936756ddf
Update texture display before updating visual range. Refs #388
...
* This was broken in 0f4d43cd37 which changed from specifying texture
settings directly, to using them from the output's settings.
2016-10-06 12:49:46 +02:00
baldurk
dc90d5e9dd
Make sure reported texture sample count is always at least 1. Refs #387
...
* Particularly, GL texture buffers were incorrectly setting it to 0
which was invalid and caused a crash later.
2016-10-06 12:35:09 +02:00
baldurk
d322f17695
Cache textures in GL GetTexture if they weren't seen before. Refs #386
...
* When saving the result of a custom shader visualisation, we need to
get the texture details of a live-created (ie. not from the capture)
texture.
2016-10-06 12:12:53 +02:00
baldurk
2be29d9229
Move Following struct declaration to header, add per-texture settings
2016-10-05 20:20:19 +02:00
baldurk
3ea107fd6c
Don't race to a double-delete, LambdaThread deletes its own thread
2016-10-05 20:20:19 +02:00
baldurk
044c16a0a3
Switch to helper functions for blocking dialogs (file and message)
...
* To continue the workaround for QTBUG-56382 we need to run our own
manual message loop for dialogs as well. We only use a couple so we
can just run it through a handful of thin wrappers.
2016-10-05 16:52:05 +02:00
baldurk
86623528bf
Work around QTBUG-56382 with manual event loop flushing
...
* See https://bugreports.qt.io/browse/QTBUG-56382 for more details -
creating DXGI swapchains adds a windows hook, and enough windows hooks
forces out Qt's internal hook which it relies upon for proper event
processing.
2016-10-05 16:52:05 +02:00
baldurk
d1cda249e2
Don't 'use' hidden thumbnails with items we're not going to show
2016-10-05 16:52:04 +02:00
baldurk
74c7820c18
Fix typo - don't use the wrong variable
2016-10-05 16:52:03 +02:00
baldurk
202ab8867c
Treat backbuffers as sRGB for the purposes of remapping. Refs #368
2016-10-05 11:16:04 +02:00
baldurk
dbbba985f6
Don't execute Qt env script for docs builds
2016-10-05 01:26:27 +02:00
baldurk
c47ab2c515
Fix for conflicts between X headers and Qt due to overlapping #defines
2016-10-05 01:13:09 +02:00
baldurk
924b973c5b
Remove duplicated files listed in qt project
2016-10-05 01:13:08 +02:00
baldurk
a8ca89e0f5
Fix compile warnings
2016-10-05 01:13:08 +02:00
baldurk
b14135a22e
Compile fix, typo'd variable name
2016-10-05 01:08:49 +02:00
baldurk
c5eff0acc4
Travis: Fix typo in package name
...
* Side note, it's incredibly stupid that the only way for me to iterate
on this is to push public commits, without doing something awkward
like forking to a separate repo just to test.
2016-10-04 22:56:00 +02:00
baldurk
cc664a3129
Travis: Configure travis to compile specifically with Qt5.7
2016-10-04 22:51:17 +02:00
baldurk
ea81c9ef8e
Move includes to header file for Display/xcb_connection_t definitions
2016-10-04 20:13:57 +02:00
baldurk
da992e9c3e
Add following and populating thumbnails
...
* This is buggy - the UI seems to hang at random until you switch away
and back, some event I guess is stalling the queue somehow but it's
still pumping events.
2016-10-04 19:54:35 +02:00
baldurk
6668b44153
Update Core filename to CaptureContext in qt project
2016-10-04 19:54:34 +02:00
baldurk
525fb3faf1
Refresh thumbnail strip layout when it becomes visible
2016-10-04 19:54:34 +02:00
baldurk
9b3e0176dc
Pass clicked event from resource preview members to signal
2016-10-04 19:54:33 +02:00
baldurk
591ad38e48
Pass MouseEvent through label click signal
2016-10-04 19:54:33 +02:00
baldurk
fe1e86d35a
Fill out pipeline state with API pipelines
2016-10-04 19:54:32 +02:00
baldurk
39bfe99ae5
Implement common pipeline state abstraction
2016-10-04 19:54:32 +02:00
baldurk
0b6b6b3e86
Add MIT License comment to the head of all source files
2016-10-04 19:54:31 +02:00
baldurk
e91634004f
Rename Core to CaptureContext
2016-10-04 19:54:31 +02:00
baldurk
0f4d43cd37
Make minmax/histogram aware of custom shaders. Refs #385
...
* This moves those functions relative to an output instead of the
renderer, so they pick up the settings etc from the output
configuration.
2016-10-04 19:54:30 +02:00