Commit Graph

1959 Commits

Author SHA1 Message Date
baldurk 4d59116a2d Add 1D/3D versions of glTexStorage and glTexSubImage 2014-06-01 15:58:06 +01:00
baldurk f9072d6cdf Fix dlsym() call to fetch right function name 2014-06-01 12:40:14 +01:00
baldurk 61f9d1ddec Don't serialise size_t across network (not fixed length) 2014-06-01 12:23:26 +01:00
baldurk 399c18a6ce Linux compile fixes 2014-06-01 12:04:28 +01:00
baldurk 9b8adebb91 Bind resources while in READING, as we're replaying edit chunks
* While replaying the initial chunks, we're doing edit type operations but
  we haven't serialised out the binding operations in between, so in this
  state we do the bind-to-edit binds ourselves.
2014-06-01 11:54:54 +01:00
baldurk c4fa9f0fd6 Don't need record when not writing 2014-06-01 10:01:17 +01:00
baldurk 932995da56 First attempt to implement Map/Unmap 2014-06-01 10:01:10 +01:00
baldurk 60ca0d065b Fix renderstate fetch/apply to not spew GL debug errors 2014-06-01 10:00:40 +01:00
baldurk 169fe852be Add glDrawBuffers 2014-06-01 10:00:13 +01:00
baldurk f6880a158e Add more glUniform* variants 2014-05-31 17:05:01 +01:00
baldurk 76ba104918 Add glSamplerParameter variants 2014-05-31 16:56:48 +01:00
baldurk ef9b050b4d Fill in a bunch of render state fetching 2014-05-31 16:36:37 +01:00
baldurk 5f2d78e7a4 Fill in some functions that were implemented but not serialised 2014-05-31 15:57:27 +01:00
baldurk fceff6c7f7 Add a few more functions :) 2014-05-31 15:20:31 +01:00
baldurk d4cbf07b6e Add a lot of glGet functions 2014-05-31 14:34:48 +01:00
baldurk 2a9b7962ce Hook into wglCreateLayerContext 2014-05-31 00:51:21 +01:00
baldurk 5bf34b16c1 Serialise fixed-size stdint types instead of GL types 2014-05-31 00:46:08 +01:00
baldurk f707e85d03 Add glColorMask 2014-05-31 00:42:41 +01:00
baldurk a37dc952e0 Add other glClearBuffer variants 2014-05-31 00:23:21 +01:00
baldurk 640ad6b7b2 glBlitFramebuffer 2014-05-31 00:04:27 +01:00
baldurk 4062c81132 glCullFace and glFrontFace 2014-05-31 00:04:26 +01:00
baldurk 0dc338e563 Serialise out viewports 2014-05-31 00:04:25 +01:00
baldurk 8a4b32f2a3 Add glClearColor and glClearDepth 2014-05-31 00:04:25 +01:00
baldurk 05da325796 Print an error for each dll function that fails to hook. 2014-05-31 00:04:24 +01:00
baldurk f47799c1fe Implement glCheckFramebufferStatus 2014-05-31 00:04:23 +01:00
baldurk b56ad403d9 Serialise blend functions and blend state 2014-05-31 00:04:23 +01:00
baldurk 9e0cace897 Implement glBindSampler 2014-05-31 00:04:22 +01:00
baldurk 459c3b5aa3 Serialise out glBindBuffer{Base,Range} and glBindFramebuffer 2014-05-31 00:04:21 +01:00
baldurk 5d7f296deb Add GLRenderState class to track GL state vector
* Use it to serialise in/out initial state at the start of each captured
  frame.
* Serialise active texture and buffer bindings (indexed and non-indexed).
2014-05-31 00:04:21 +01:00
baldurk ada40e303c Serialise glActiveTexture during frame captures 2014-05-31 00:04:20 +01:00
baldurk c7b0ae41ef Remove texture alignment tracking and save texture units in initial state
* Tracking the alignment was pointless and it isn't implemented yet anyway.
* Relevant state should be saved at the start of each captured frame, so
  include the active texture bindings in this
2014-05-31 00:04:19 +01:00
baldurk f15fffa115 Use vsnprintf_s over vsprintf_s, make char buffer big enough. Closes #64 2014-05-27 19:18:12 +01:00
baldurk 7982301b60 Speculative fix for crash report NullReferenceException in OnInject 2014-05-26 15:00:02 +01:00
baldurk 2d578cdda1 Handle IO errors while reading/writing config file - crash report fix 2014-05-26 14:54:30 +01:00
baldurk 3ccd8980a3 Fix default capture options not being applied in 0.20 and above
* These capture options used to be propagated through from the C++ struct
  when there was a C++/CLI dll used for interop between C# and C++. Now
  that we use P/Invoke this needs to be added back so a couple of default
  options can be enabled
2014-05-26 13:53:30 +01:00
baldurk 07d16672a4 Fix backbuffer RTV not recreating properly if Desc->Format is UNKNOWN
* Judging by the error reports that pointed to this crash, this happens
  with the Dolphin emulator.
2014-05-26 13:50:09 +01:00
baldurk 827fae3a67 Fix shader debugging always reading from pixel resources. Closes #59
Instead of assuming that we can sample straight from the bound resource,
we save what's bound on PS slot 0, always sample from that slot, and
bind whatever resource & sampler onto PS slot 0 for the sampling draw.
2014-05-13 22:40:59 +01:00
baldurk d678d847d7 Add support for arrays in the buffer viewer. Closes #56
For now this just acts like a really wide vector with N columns for the
array, but this could be improved in future if a better visualisation is
decided on.
2014-05-13 21:53:59 +01:00
baldurk 851f280725 Expand shader viewer for really long source. Closes #57 2014-05-13 21:28:26 +01:00
baldurk 1f43b0e64e In release advance precisely opcode length. Fixes #54.
In non-release, still warn + log for unexpected tokens, and
error for over-reading, but since there's no good documentation
we have to just assume the opcode length is accurate and try not
to worry about mysterious inaccuracies.
2014-05-10 23:46:53 +01:00
baldurk b30fe86658 check for vshost exe as well as other exes to detect replay app 2014-05-08 22:20:48 +01:00
baldurk 3b4c2a909e Merge pull request #52 from zerhacken/vs2013-compiler-warnings
vs2013 compiler warnings
2014-05-08 20:16:36 +01:00
Rasmus Christian Pedersen 7c1260fdc0 core: fix VC++ warning C4703
This commit fixes VC++ warning C4703 in core/remote_access.cpp
"potentially uninitialized local pointer variable".
2014-05-08 21:14:06 +02:00
Rasmus Christian Pedersen 15aa210468 jpeg compressor: fix VC++ warning C4703
This commit fixes VC++ warning C4703 in jpeg-compressor/jpgd.cpp
"potentially uninitialized local pointer variable".
2014-05-08 21:13:15 +02:00
baldurk d31df95df6 Merge pull request #51 from zerhacken/minor-fixes
core: const correctness
2014-05-08 11:59:29 +01:00
Rasmus Christian Pedersen 77ffde4beb core: const correctness
This commit chanages several functions in renderdoc/core to const functions.
2014-05-08 11:20:20 +02:00
baldurk abd062a700 Merge pull request #50 from zerhacken/minor-fixes
Const correctness fixes in threading.h and wrapped_pool.h
2014-05-07 19:55:43 +01:00
Rasmus Christian Pedersen 01da98996b wrapped pool: IsAlloc constness
This commit changes WrappingPool::IsAlloc to take a const pointer as argument
as pointer isnt modified. ItemPool::IsAlloc is changed to a const function
taking a const poiner as argument.
2014-05-07 20:34:27 +02:00
Rasmus Christian Pedersen 37a5f1c8e1 threading: HasLock const function 2014-05-07 20:34:27 +02:00
baldurk abbe8efc26 Only read from input data from debug message when WRITING.
Fixes submitted auto-crash-dump "report_2014.05.07_16.39.37_408"
2014-05-07 18:39:50 +01:00