Commit Graph

1076 Commits

Author SHA1 Message Date
baldurk a1bc380f06 Fix missing else that caused all samplers to be skipped. Oooops. 2015-01-20 15:05:13 +00:00
baldurk 6326b3344d s/Constant Buffers/Uniforms and UBOs/ on GL pipeline view 2015-01-20 15:00:39 +00:00
baldurk 96b8818120 Give constant buffer previewer proper naming on OpenGL logs 2015-01-20 14:57:20 +00:00
baldurk 45a78df2ae Fix vertex input attribute/buffer mutual highlighting 2015-01-20 13:52:06 +00:00
baldurk 57c8aa476f Use GetRow instead of GetPositionFromControl as it's more reliable 2015-01-20 13:45:38 +00:00
baldurk 74b231a413 Make sure TES and TCS are the right way around 2015-01-20 11:51:31 +00:00
baldurk 68f8f1b6e3 Fix GL pipeline state table layouts 2015-01-20 11:39:06 +00:00
baldurk 0ee9e9be76 Re-add functions to stb_image_write to write to a FILE*. 2015-01-19 13:25:27 +00:00
baldurk 128779581f Update to stb_image_write v0.97 and stb_image v2.02 2015-01-19 13:25:24 +00:00
baldurk c071d883c7 Make sure to clamp data being saved to .hdr to non-negative 2015-01-19 11:38:35 +00:00
baldurk 5425a9d423 Allow opengl types in buffer format string parsing 2015-01-19 02:08:35 +00:00
baldurk aa81a3955c Display 'read-write' type objects grouped together in GL pipe state
* This includes atomic counters, shader storage buffer objects and images.
2015-01-19 02:04:29 +00:00
baldurk de6d93c47f Improve GL shader reflection to include Atomic bufs, SSBOs and images 2015-01-19 02:04:08 +00:00
baldurk 48f98ebdef Add shader subroutines (placeholder) and transform feedback
* The transform feedback is placed on the geometry shader tab the same as
  in D3D11. It doesn't merit its own whole tab and that seemed like the
  best place to put it (last processing stage before rasterization).
* To aid understanding, further stages are marked disabled if rasterizer
  discard is on, and if no geometry shader is bound the stage is renamed.
2015-01-18 12:06:39 +00:00
baldurk 3b2d45131b Allow renaming of a stage in the pipeline flowchart control 2015-01-18 12:05:01 +00:00
baldurk f89e5a80e2 Mkae transform feedback data public on .NET side 2015-01-18 12:04:52 +00:00
baldurk ab4f26871f Fetch transform feedback data even if default feedback object bound 2015-01-18 12:04:37 +00:00
baldurk c32e9c7c44 Stop any active feedback/queries before restoring frame initial state 2015-01-18 12:04:20 +00:00
baldurk 6107129286 Add group for multisample state on rasterizer tab 2015-01-18 11:34:26 +00:00
baldurk d344fc6c88 Add the other bits of rasterizer state to be included in the UI 2015-01-18 11:20:54 +00:00
baldurk c05272c23d Show seamless cubemap sampling state in UI 2015-01-18 10:55:09 +00:00
baldurk 0fb3c54514 Compile fixes for C# GL pipeline state struct to match real struct 2015-01-18 10:54:48 +00:00
baldurk ec1a81cf8b Save config file after adding 'recent file'
* This has been bugging me for ages, it's not a problem typically for users
  as the config would be saved on shutdown, but if you're debugging
  renderdoc and you kill the process (by stopping debugging) after loading
  a log but before closing the program, the recent file wouldn't be saved!
2015-01-18 10:54:24 +00:00
baldurk cfab18d878 Pass through image, shader storage and atomic buffer binding state 2015-01-17 22:53:07 +00:00
baldurk d80687832f Include transform feedback state in GL pipeline state 2015-01-17 21:47:06 +00:00
baldurk 11c2d4bdcc Add list of shader subroutine values 2015-01-17 21:27:45 +00:00
baldurk 82d262ad8b Pass through multisample state and point/line rast state values 2015-01-17 19:09:04 +00:00
baldurk f607f9832e Add texture seamless cubemap enabled state 2015-01-17 18:49:09 +00:00
baldurk 8b91c8540b Pass through Read FBO, and handle Draw/Read Buffers indirection 2015-01-17 18:49:08 +00:00
baldurk e84a79dc17 Add some default constructors 2015-01-17 18:49:08 +00:00
baldurk 91d26c6a75 Pass through some vertex processing state & opengl quality hints 2015-01-17 18:49:08 +00:00
baldurk 24fd91a7e0 Display texture swizzling and depth/stencil read mode on textures 2015-01-17 15:53:09 +00:00
baldurk ce7c8eb44f Don't fetch sampling parameters for texture buffers (invalid) 2015-01-17 15:49:03 +00:00
baldurk 25ab5520c5 Fixes for GL image texture render state
* When binding an empty texture, sanitise the parameters so we don't
  pass invalid enums for access/format.
* When fetching, actually use the indexed Get functions to get the right
  slot. Ooops :S.
2015-01-17 15:42:50 +00:00
baldurk 7e10c5c4ea Pass through ShaderResourceType per-texture for better type naming 2015-01-17 15:03:34 +00:00
baldurk af545e00c7 Don't include Samplers in texture array 2015-01-17 14:57:25 +00:00
baldurk b47fedf08c Remove a couple of TODOs from GL driver
* GL_MIN_MAP_BUFFER_ALIGNMENT is now satisfied (up to 64), and from reading
  the spec, yes the mip dimensions have to be defined as standard, you
  can't define just some crazy custom mip chain sizes as that's invalid.
2015-01-17 13:06:04 +00:00
baldurk 760e18c242 Save GL_SAMPLE_SHADING, GL_RASTERIZER_DISCARD and all tex bindings
* For every texture unit in GL, you can have one of each texture bound to
  it. So you can bind a 2d and a 3d to slot 5, and as long as you don't
  try to use both at once, you can use one in one shader, one in another,
  without needing to rebind. So the state vector we need to save includes
  every type of texture.
* I think, from checking against the spec tables, this should be the entire
  state vector saved now for core 4.5. There might still be some extension
  state not saved.
2015-01-17 13:05:04 +00:00
baldurk 772ee5ae3a Fix minor memory leak - array not being freed 2015-01-16 22:55:27 +00:00
baldurk 51a0ee1dc1 Fix typo! 2015-01-16 22:54:03 +00:00
baldurk c7a4a45d1d Only return interfaces where supported by real object. Refs #119
* Note in some cases we still unconditionally return an object (like
  ID3D11InfoQueue) just for compatibility's sake if it's pretty ubiquitous
  and programs might expect it to always be there. This change however will
  stop us from reporting interfaces that might actually not be HW or OS
  supported.
2015-01-16 22:18:01 +00:00
baldurk 75e3a54d32 Update visible copyrights (non-code) to 2015 2015-01-16 22:14:06 +00:00
baldurk e13f4b61d4 Crash fix for if the GL pipeline state is empty (e.g. a D3D11 log) 2015-01-16 14:02:14 +00:00
baldurk 035eecfb1e Show if GL_FRAMEBUFFER_SRGB is 0 for an SRGB FBO attachment 2015-01-16 11:34:35 +00:00
baldurk 7168a1b69c Clear primitive restart index text 2015-01-16 02:50:10 +00:00
baldurk b059e601c5 Send sampler information through to GL pipeline state for display 2015-01-16 02:49:00 +00:00
baldurk cceddc9b19 Tidy up constant buffer table per-shader in GL pipeline state view 2015-01-16 02:03:55 +00:00
baldurk d35abd9727 Give proper name on constant buffer previewer for GL 2015-01-16 02:01:56 +00:00
baldurk af51c4f1e6 Tweak rasterizer page display to be a bit nicer 2015-01-16 01:14:21 +00:00
baldurk 6f0284f170 Show depth and stencil states on GL pipeline view 2015-01-16 00:43:44 +00:00