Henrik Rydgård
35aefe4a2a
BindBackBufferAsRenderTarget is now replaced with BindFramebufferAsRT(nullptr)
2017-05-30 09:36:17 +02:00
Unknown W. Brackets
fd4399e108
GPU: Centralize fb resize, move to begin of frame.
...
It makes more sense here, because otherwise when you change it from the UI
settings, it takes a frame to "kick in".
2017-04-24 12:02:52 -07:00
Unknown W. Brackets
97620d4cca
GPU: Rebuild FBOs when they now have storage.
2017-04-24 09:37:54 -07:00
Unknown W. Brackets
98ba7afa83
Destroy FBOs only on actual resize.
...
As a side effect, this means going to settings won't reset all FBOs
anymore. The behavior can still be obtained by changing render resolution
or rendering mode.
This makes resizing the window faster on Windows, and resumes quicker from
pause.
2017-04-13 23:36:17 -07:00
Unknown W. Brackets
030f803002
Remove unused parameter to DestroyAllFBOs().
2017-04-13 23:07:21 -07:00
Unknown W. Brackets
ff14495511
Fix out-of-bounds framebuffer blit on color bind.
...
This corrects a crash reported in Persona 3 using D3D11.
2017-04-06 18:49:48 -07:00
Henrik Rydgard
10f144ef2e
Remove BGRA path from GLES. Less code to test and support and it does no longer appear to have any benefit. See new comments in #5874
2017-03-26 11:39:25 +02:00
Unknown W. Brackets
1b02734e56
GL: Avoid common-case shuffling video/raw draws.
2017-03-22 21:00:28 -07:00
Unknown W. Brackets
3fbb545451
Allow MakePixelTexture to use a subrange.
...
For example, if it has a larger texture it wants to reuse, it can control
this via texcoords. Let's keep it at top left, though.
2017-03-22 20:56:26 -07:00
Henrik Rydgård
eb73a28140
Add new log category FRAMEBUF
2017-03-13 13:55:29 +01:00
Henrik Rydgard
9bb81a24c0
Fix bug where we'd reload the post shader information every frame. Fixes #9410
2017-03-11 12:25:43 +01:00
Henrik Rydgård
1496e2caa2
Fix possible crash when task switching on Android
2017-03-06 17:04:55 +01:00
Henrik Rydgard
5d4700ae7e
Sprinkle calls to CHECK_GL_ERROR_IF_DEBUG all over the place, disabled by default.
2017-03-03 14:18:40 +01:00
Henrik Rydgard
fa80cfa4aa
Additional UWP preparations
2017-02-25 09:57:14 +01:00
Henrik Rydgård
c355947bca
Merge pull request #9350 from hrydgard/d3d11-postproc
...
D3D11 postprocessing shaders
2017-02-23 20:39:28 +01:00
Henrik Rydgard
79bd01efb8
D3D11: Add support for viewing the depth and stencil buffers in the GE debugger
2017-02-23 16:27:26 +01:00
Henrik Rydgard
731026c199
D3D11: Can now switch post shader at runtime, and won't crash if they fail to translate correctly.
2017-02-23 12:42:28 +01:00
Henrik Rydgard
e16e1b6d7e
GL: If possible, use glCopyImageSubData instead of glBlitFramebuffer to copy depth buffers
2017-02-21 11:10:44 +01:00
Henrik Rydgard
e83dd2b524
Minor cleanup, elimintate some bind ordering hazards that D3D11 warns about
2017-02-17 14:31:02 +01:00
Henrik Rydgard
9359922201
GL: Fix inconsistency with BindFramebufferColor
2017-02-17 12:13:53 +01:00
Henrik Rydgard
a847de9522
Fix some minor gl bugs
2017-02-15 23:56:38 +01:00
Henrik Rydgard
68c5a6c517
Unify CopyDisplayToOutput
2017-02-15 23:24:25 +01:00
Henrik Rydgard
23762ef89f
Unify DrawFramebufferToOutput
2017-02-15 23:11:46 +01:00
Henrik Rydgard
26f208a212
Unify "DrawPixels"
2017-02-15 23:06:22 +01:00
Henrik Rydgard
84e6054b23
More work towards unifying CopyDisplayToOutput
2017-02-15 22:48:23 +01:00
Henrik Rydgard
cba37e54d0
Preparations for unifying CopyDisplayToOutput
2017-02-15 22:47:50 +01:00
Henrik Rydgard
0fb1e95bac
Remove GLSL program argument to DrawActiveTexture - bind before instead.
2017-02-15 22:47:44 +01:00
Henrik Rydgard
d084da9e04
DrawActiveTexture: Don't allow passing in nullptr as a GLES program
2017-02-15 21:51:40 +01:00
Henrik Rydgard
3ac0fc2466
Move compiledraw2dprogram out of DrawActiveTexture
2017-02-15 21:51:39 +01:00
Henrik Rydgard
f95ab4a0fa
One more step
2017-02-15 21:51:39 +01:00
Henrik Rydgard
8f48816baa
Move CalcShaderUniforms to FramebufferCommon
2017-02-15 21:51:38 +01:00
Henrik Rydgård
abbd6cb1d1
Fix DrawActiveTexture, now Buffered Rendering is starting to work
2017-02-12 11:20:55 +01:00
Henrik Rydgard
391f7be8f9
Unify DecimateFBOs
2017-02-07 00:46:14 +01:00
Henrik Rydgard
5c69878ccb
Unify ResizeFramebufFBO
2017-02-07 00:38:12 +01:00
Henrik Rydgard
27d5c5a2d4
Unify NotifyRenderFramebufferSwitched
2017-02-07 00:29:02 +01:00
Henrik Rydgard
19868b5df7
Unify GetTempFBO
2017-02-07 00:24:38 +01:00
Henrik Rydgard
06addecb3d
Unify cardboard settings calculation
2017-02-07 00:19:31 +01:00
Henrik Rydgard
5b181e8244
Further work on DrawActiveTexture
2017-02-07 00:13:54 +01:00
Henrik Rydgard
275f9248a1
Preparing to unify the DrawActiveTexture API
2017-02-07 00:08:45 +01:00
Henrik Rydgard
89763efe57
Unify SetNumExtraFBOs
2017-02-07 00:08:45 +01:00
Henrik Rydgard
9e644aa815
Unify NotifyRenderFramebufferUpdated
2017-02-07 00:08:45 +01:00
Henrik Rydgard
85ec96ecf1
Unify NotifyRenderFramebufferCreated
2017-02-07 00:08:45 +01:00
Henrik Rydgard
a0992cce75
Unify DestroyFramebuf()
2017-02-07 00:08:45 +01:00
Henrik Rydgard
55aa879216
A lot of buildfixes
2017-02-06 16:16:43 +01:00
Henrik Rydgard
e42f5e6f46
Rename the fbo_ functions to match the rest of DrawContext.
2017-02-06 11:40:16 +01:00
Henrik Rydgard
ad29974a56
Change when drawcontexts are allocated. Hook up backbuffer events to fix d3d9 resizing.
2017-02-06 11:40:16 +01:00
Henrik Rydgard
f1c96c056d
Move all the GL/D3D9 FBO code into thin3d.
2017-02-06 11:40:16 +01:00
Henrik Rydgard
d05ef4a859
Pass through the DrawContext to texturecaches and fb managers.
...
This is preparation for sharing more framebuffer code between the
backends.
2017-02-05 19:51:50 +01:00
Henrik Rydgard
1a149ba02d
Final tweak to the cleaned up FBO api before moving it to thin3d. Buildfixes.
2017-02-04 22:25:34 +01:00
Henrik Rydgard
0b7f3720ae
More FBO api cleanup
2017-02-04 22:25:34 +01:00