Philip Rebohle
62a43cbdbe
[d3d11] Add EmitCs method to D3D11DeviceContext
...
Subsequently, all calls into the DXVK context will be
replaced by calls to the EmitCs method with a lambda.
2018-01-20 15:29:10 +01:00
Philip Rebohle
0b426a0942
[d3d11] Added new D3D11ImmediateContext class
...
Initial prep work for both CSMT and Deferred Contexts.
2018-01-20 13:22:44 +01:00
Philip Rebohle
c7a9763f6d
[d3d11] Re-implemented draw call-based context flush
...
After doing more testing, it became apparent that this
optimization is beneficial most of the time and may also
improve stability by limiting the number of commands
recorded into a single command buffer.
2018-01-13 23:09:03 +01:00
Philip Rebohle
65d84dabfe
[d3d11] Removed draw-call based context flush
...
Combined with the recent command submission optimization,
this actually had a negative impact on performance.
2018-01-13 05:27:26 +01:00
Philip Rebohle
c1d6c20066
[d3d11] Implemented D3D11 parts of append/consume buffers
2018-01-11 12:23:55 +01:00
Philip Rebohle
1b67ffaed2
[d3d11] Added default sampler state
2018-01-10 19:07:55 +01:00
Philip Rebohle
3925675b89
[d3d11] Optimized command submission
...
The context will now be flushed after a render pass that consisted of
several hundreds of draw calls. This way the GPU should be kept busy.
2018-01-08 17:45:21 +01:00
Philip Rebohle
ad10ab07f8
Revert "[d3d11] Added dummy resoruce binding for buffers"
...
This approach will not work if the d3d11 context binds an
incompatible resouce in case the pipeline itself changes.
2018-01-08 13:01:31 +01:00
Philip Rebohle
24ad9e730c
[d3d11] Added dummy resoruce binding for buffers
...
Fixes crashes when a D3D11 application uses unbound resources
in shaders. Allows Nier:Automata to play back cutscenes.
2018-01-08 10:17:52 +01:00
Philip Rebohle
a3fe40051f
[d3d11] Initial support for unordered access views
...
Currently restricted to buffers on the API side. Typed UAVs
are not yet supported by the shader compiler. This is enough
to run very simple compute shaders.
2017-12-28 19:05:53 +01:00
Philip Rebohle
518b469742
[dxvk] Added command stream classes
...
While these are not being used as of yet, these classes can be
used to implement command stream multithreading in the future.
They are also useful to implement command lists for deferred
contexts, which are a core feature of D3D11.
2017-12-20 22:17:14 +01:00
Philip Rebohle
84190369ab
[d3d11] Optimized resource binding methods
2017-12-20 17:37:46 +01:00
Philip Rebohle
d9f38a7f42
[d3d11] Minor restructuring
2017-12-15 19:11:10 +01:00
Philip Rebohle
4172b99952
[d3d11] Implemented naive Map() optimization when used with D3D11_MAP_WRITE_DISCARD
2017-12-13 17:49:08 +01:00
Philip Rebohle
2a266eaad4
[general] Added 32-bit support
2017-12-12 12:50:52 +01:00
Philip Rebohle
037e9a643d
[d3d11] Fixed yet another ref counting bug
2017-12-11 17:01:38 +01:00
Philip Rebohle
50b7293b8f
[d3d11] Implemented blend state and depth-stencil state binding
2017-12-11 14:11:18 +01:00
Philip Rebohle
9c997120e1
[d3d11] Implemented shader resource binding
2017-12-10 01:56:07 +01:00
Philip Rebohle
2b86a2f1f3
[d3d11] Changed the way default pipeline state is restored
2017-12-09 21:39:56 +01:00
Philip Rebohle
1160810687
[d3d11] Implemented sampler binding
2017-12-09 21:17:26 +01:00
Philip Rebohle
c90bc3e946
[dxbc] Implemented proper resource slot mapping
2017-12-08 22:30:41 +01:00
Philip Rebohle
0610296248
[d3d11] Implemented constant buffer binding
2017-12-08 19:39:33 +01:00
Philip Rebohle
b49815657e
[dxvk] Refactored blend state
2017-12-08 01:06:48 +01:00
Philip Rebohle
385c92db5a
[dxvk] Refactoring of most constant state objects
2017-12-08 00:02:43 +01:00
Philip Rebohle
3cf9582187
[d3d11] Added default constant state objects
2017-12-07 14:22:23 +01:00
Philip Rebohle
dece62c70a
[d3d11] Implemented basic shader creation methods
2017-12-06 18:54:01 +01:00
Philip Rebohle
f990fcaa01
[d3d11] Implemented rasterization state and viewports
2017-12-06 12:11:59 +01:00
Philip Rebohle
cf33315c0c
[d3d11] Some cleanup work
2017-12-04 13:39:37 +01:00
Philip Rebohle
4e39ef859b
[dxvk] More convenient command list assignment API
2017-12-01 10:08:49 +01:00
Philip Rebohle
b389c9ea1f
[d3d11] Experimental implementation of OMSetRenderTargets and ClearRenderTargetView
2017-11-29 20:19:40 +01:00
Philip Rebohle
a956c1b8ac
[dxgi] Added DxgiResource for image and buffer creation
2017-11-29 15:16:07 +01:00
Philip Rebohle
024d69784d
[d3d11] Implemented basic device creation
2017-10-11 15:32:24 +02:00
Philip Rebohle
c7680dea2a
[d3d11] Added D3D11 stubs
2017-10-11 09:51:48 +02:00