Commit graph

81 commits

Author SHA1 Message Date
Henrik Rydgard
d78d3bb25f Change the API for updating buffers from the CPU to be cleaner 2017-02-07 19:04:44 +01:00
Henrik Rydgard
534a65c610 Remove thin3d buffer->SetData 2017-02-07 18:42:32 +01:00
Henrik Rydgard
691539b428 Stub new UpdateBuffer API 2017-02-07 18:16:52 +01:00
Henrik Rydgard
be557fc323 Remove fbo_preferred_z_bitdepth 2017-02-06 11:40:16 +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
948e2284fd VK/D3D11 early prep 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
a8f69e7d64 More DX cleanup 2017-02-05 20:06:56 +01:00
Henrik Rydgård
9d5371a8ba Thin3d: More rigorous handling of RGBA4444 texture formats 2017-01-24 20:59:00 +01:00
Henrik Rydgård
5d6097d33c Add infrastructure for checking for supported DataFormats 2017-01-24 20:59:00 +01:00
Henrik Rydgård
528af8a939 Simplification around textures 2017-01-24 20:59:00 +01:00
Henrik Rydgård
d8dbb8389b Make buffer binding more Vulkan/Metal-like 2017-01-24 20:59:00 +01:00
Henrik Rydgård
8654d42528 DrawContext API change: introduce TextureDesc 2017-01-24 20:59:00 +01:00
Henrik Rydgård
d2c4cbacad Delete unnecessary form of CreateTexture 2017-01-24 20:58:59 +01:00
Henrik Rydgård
6a7d3a3910 Break out image file management from DrawContext (thin3d) 2017-01-24 20:58:59 +01:00
Henrik Rydgård
1c337f72bb Slightly saner way to choose shaders depending on language. More work needed. 2017-01-24 20:58:59 +01:00
Henrik Rydgård
c79712d9f9 Thin3D backends can report which shader languages they support 2017-01-24 20:58:59 +01:00
Henrik Rydgård
377561865a A little more D3D11, BlendFactor 2017-01-24 20:58:59 +01:00
Henrik Rydgård
e47138a5f3 Warning fixes 2017-01-17 20:26:48 +07:00
Henrik Rydgård
674937a520 Extend some enums with potentially useful values 2016-12-27 11:59:12 +01:00
Henrik Rydgård
10e4d4db14 Draw: Preliminary stencil implementation. Two-sided only implemented for Vulkan. 2016-12-27 11:59:11 +01:00
Henrik Rydgård
cbf4e5f38c Implement colormask 2016-12-27 11:59:11 +01:00
Henrik Rydgård
2952588a54 Add a selection of device caps to check for features. Unfinished. 2016-12-27 11:59:11 +01:00
Henrik Rydgård
9f2e83b66c Bundle up more state in the pipeline object. Lets us get rid of Vulkan's pipeline cache. 2016-12-27 11:59:11 +01:00
Henrik Rydgård
8d84fb75c7 Remove ShaderSet presets 2016-12-27 11:59:10 +01:00
Henrik Rydgård
1ed7f0d7fd More modern way to specify vertex data format (inputlayout) 2016-12-27 11:59:10 +01:00
Henrik Rydgård
166243e0fd Make pipelines bound state 2016-12-27 11:59:10 +01:00
Henrik Rydgård
4462a8cc99 Rename ShaderSet to Pipeline. Get rid of scissorEnable setting (scissor is always enabled). 2016-12-27 11:59:10 +01:00
Henrik Rydgård
e56f251f74 Make ShaderSet support more than just fshader/vshader 2016-12-27 11:59:10 +01:00
Henrik Rydgård
3de4a38527 More renaming to match 2016-12-27 11:59:10 +01:00
Henrik Rydgård
cce1ee332b More complete DataFormat enum 2016-12-27 11:59:10 +01:00
Henrik Rydgård
425940b433 More renaming 2016-12-27 11:59:07 +01:00
Henrik Rydgård
c7c541f926 Add DepthStencilStateDesc 2016-12-27 11:59:06 +01:00
Henrik Rydgård
f86b9f7900 Guess what? More renaming 2016-12-27 11:59:06 +01:00
Henrik Rydgård
9b439e4c43 Remove Thin3D prefix on more things 2016-12-27 11:59:06 +01:00
Henrik Rydgård
463251908b Rename things to closer match another project which I plan to share some code with 2016-12-27 11:59:02 +01:00
Henrik Rydgård
10393f5d4e Move Thin3D into the Draw namespace. 2016-12-27 11:58:03 +01:00
Henrik Rydgård
b60ad37146 Remove blend and sampler state presets, they didn't save any code 2016-12-25 11:37:23 +01:00
Henrik Rydgård
97d029972e Rename SetTextures to BindTextures 2016-12-25 11:31:33 +01:00
Henrik Rydgård
1c0c755b03 Extract RasterState from thin3d, for easier d3d11 porting 2016-12-25 11:31:33 +01:00
Henrik Rydgård
4a3938958c Thin3D: Unified DataFormat enum 2016-12-25 11:31:33 +01:00
Henrik Rydgard
d43b3ef73f Minor cleanup in thin3d 2016-12-22 13:25:42 +01:00
Henrik Rydgard
fd0af5b271 Vulkan: Mostly pass the validation layers in SDK 1.0.13 2016-05-24 21:41:35 +02:00
Unknown W. Brackets
b09c2b1f75 Add some missing override definitions. 2016-05-21 09:29:03 -07:00
Henrik Rydgard
51bcb02921 Minor vulkan updates to match the latest SDK/validator 2016-05-14 16:29:40 +02:00
Henrik Rydgard
fa64417917 Minor warning fixes 2016-04-10 10:34:39 +02:00
Henrik Rydgard
e1f660ebc1 Update vulkan structure init to the new style 2016-04-02 23:57:23 +02:00
Unknown W. Brackets
f3d113a777 thin3d: Use 32-bit indexed drawing to match. 2016-03-21 07:17:38 -07:00
Unknown W. Brackets
1b8985a080 thin3d: Fix tranposed Vulkan bufs. 2016-03-21 07:17:37 -07:00