Commit Graph

310 Commits (506c2e48194bf7cb067273ba5adc752c35f40dc5)

Author SHA1 Message Date
Caleb Cornett 506c2e4819 FIXME fixups, mostly for contextLock 2024-02-10 21:49:19 -06:00
Caleb Cornett 54ffdc180d PresentMode fixes 2024-02-10 18:00:12 -06:00
Caleb Cornett 91b389f351 SetSwapchainPresentMode + other swapchain-y features from FNA3D D3D11 2024-02-10 17:07:56 -06:00
Caleb Cornett 01a36b940b Fix non-MSAA cube RTs 2024-02-10 00:19:11 -06:00
Caleb Cornett 81351a1c1b MSAA for color and depth targets 2024-02-09 23:56:36 -06:00
Caleb Cornett 25cec457b4 SetTextureDataYUV 2024-02-09 17:52:47 -06:00
Caleb Cornett e0dcaa222b Two typos in the same malloc... + cube RT fixes 2024-02-09 17:23:48 -06:00
Caleb Cornett c121492e47 Fix copy-paste error from last commit 2024-02-09 16:40:05 -06:00
Caleb Cornett ac5aa0d40c Do some type shenanigans to allow depth textures to be sampled + fix viewport sizing logic 2024-02-09 16:37:08 -06:00
Caleb Cornett 1a87a284c4 DepthStencilView creation + DS state fixes 2024-02-09 16:03:57 -06:00
Caleb Cornett a6f88ec73a RTV overhaul to fix binding an RT with a specific depth/mip level 2024-02-09 15:28:08 -06:00
Caleb Cornett 7093ce0094 First rough pass at color RTs 2024-02-09 12:09:29 -06:00
Caleb Cornett 917896e5f4 Use NO_OVERWRITE on uniform buffers after the initial WRITE_DISCARD + SetBufferData cleanup 2024-02-09 11:19:51 -06:00
Caleb Cornett 9b8dfd8207 Fix repeated buffer writes by using USAGE_DEFAULT/UpdateSubresource instead of DYNAMIC/Map for non-uniform buffers 2024-02-09 11:04:32 -06:00
Caleb Cornett 06d93a55a3 PushComputeShaderUniforms + CreateComputePipeline fix 2024-02-09 02:17:08 -06:00
Caleb Cornett 3f6ecd38a0 Actually compile compute shaders 2024-02-09 02:02:41 -06:00
Caleb Cornett 463c298c96 GetBufferData 2024-02-09 00:57:26 -06:00
Caleb Cornett 17bc9f90eb QueueDestroyComputePipeline + style cleanup for QueueDestroyGraphicsPipeline 2024-02-09 00:35:19 -06:00
Caleb Cornett ecff6f55df Fence API 2024-02-09 00:31:54 -06:00
Caleb Cornett ca7f64eb9a Clean up fence logic 2024-02-08 23:59:13 -06:00
Caleb Cornett 8be21dde9b Uniform buffer binding rework for clarity + minor cleanup 2024-02-08 23:47:25 -06:00
Caleb Cornett 0d6043cfef First pass at fence infrastructure 2024-02-08 22:53:36 -06:00
Caleb Cornett ebf96ff423 First rough draft of Compute functions (untested!) 2024-02-07 21:03:21 -06:00
Caleb Cornett f36abf29de DrawPrimitivesIndirect 2024-02-07 11:53:18 -06:00
Caleb Cornett 597b8dcef3 BindVertexSamplers 2024-02-07 10:18:49 -06:00
Caleb Cornett ce7cca2eba Fix 3D texture SRV creation, use UpdateSubresource1 to avoid bug with non-zero offsets on deferred contexts 2024-02-07 10:08:23 -06:00
Caleb Cornett b0bd383f2e Fix fragment uniform buffer block calculation 2024-02-07 09:35:03 -06:00
Caleb Cornett 10cbac3fc3 Fix device level check, fix ID3D11Device memory leak 2024-02-07 09:09:30 -06:00
Caleb Cornett 7f70318f70 Set up the DXGI Info Queue so we can filter messages without using DirectX Control Panel 2024-02-07 09:09:01 -06:00
Caleb Cornett 30fe868ea2 Add DXGIDebug logic to help track memory leaks, fix SRV leak it discovered 2024-02-07 08:02:49 -06:00
Caleb Cornett 1b63ff8467 Minor style cleanup 2024-02-07 07:34:07 -06:00
Caleb Cornett 69df00398e Fix a couple minor memory leaks 2024-02-07 07:33:23 -06:00
Caleb Cornett 248aa956ac Release DLLs after releasing D3D11/DXGI objects (and release dxgi.dll!) 2024-02-06 22:40:16 -06:00
Caleb Cornett e022faf545 Fix degenerate InputLayout creation when creating graphics pipeline with no vertex attributes 2024-02-06 21:48:16 -06:00
Caleb Cornett 641abe4bb5 Fixed uniform offsets, removed a bunch of code from cdefines.h 2024-02-06 21:13:02 -06:00
Caleb Cornett 53128e0b66 Uniform buffer infrastructure, still missing offset support 2024-02-06 21:13:02 -06:00
Caleb Cornett 991b37c006 Fix texture conversion array 2024-02-06 21:13:02 -06:00
Caleb Cornett 94c2d15895 Fix command buffer memory leak 2024-02-06 21:13:02 -06:00
Caleb Cornett e6402cbb14 CreateTexture, SetTextureData, BindIndexBuffer, BindFragmentSamplers, QueueDestroyTexture, DrawIndexedPrimitives, DrawInstancedPrimitives 2024-02-06 21:13:02 -06:00
Caleb Cornett 4bdfc2293f Fix redundant error code printing 2024-02-06 21:13:02 -06:00
Caleb Cornett d4ac8a1656 QueueDestroySampler 2024-02-06 21:13:02 -06:00
Caleb Cornett 42a9ce28e6 Add a border color conversion function 2024-02-06 21:13:02 -06:00
Caleb Cornett 6b39da7d2d CreateSampler 2024-02-06 21:13:02 -06:00
Caleb Cornett e35efa4061 CreateBuffer, QueueDestroyBuffer, SetBufferData, BindVertexBuffers 2024-02-06 21:13:02 -06:00
Caleb Cornett 741d3ebcff Initial work on DestroyDevice 2024-02-06 21:13:02 -06:00
Caleb Cornett 0f1a2423d0 Implement SetViewport and SetScissor 2024-02-06 21:13:02 -06:00
Caleb Cornett 38d51cf6de Style cleanups + added FIXME note for shader compilation 2024-02-06 21:13:02 -06:00
Caleb Cornett 9b139cf672 DrawPrimitives, BindGraphicsPipeline, misc cleanup 2024-02-06 21:11:22 -06:00
Caleb Cornett 2cb678d9a1 Implement CreateShaderModule 2024-02-06 21:11:22 -06:00
Caleb Cornett afcfacb305 Pipeline creation copied over from old work + shaderc update 2024-02-06 21:11:22 -06:00