Commit Graph

377 Commits (f36abf29dec30de9712f4836df2fa858f5504706)

Author SHA1 Message Date
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 88ca03f213 shaderc now flips Y values in the vertex shader 2024-02-06 21:12:59 -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
Caleb Cornett e47e7b2c75 Fix for command pool crash, fix for hanging on Wait 2024-02-06 21:11:22 -06:00
Caleb Cornett ce984f58d1 Reworked Wait and Submit logic to use D3D11 Query objects as fences 2024-02-06 21:11:22 -06:00
Caleb Cornett 413095923b Stub out D3D11_Wait, fix crash when unclaiming windows, fix backend order 2024-02-06 21:11:22 -06:00
Caleb Cornett e195e7f222 UnclaimWindow, swapchain destruction, fixed template signature 2024-02-06 21:11:22 -06:00
Caleb Cornett d7d89530de Implemented BeginRenderPass and Submit, ClearScreen works now! 2024-02-06 21:11:22 -06:00
Caleb Cornett f4c332f4e3 More swapchain setup 2024-02-06 21:11:22 -06:00
Caleb Cornett 1637401a8a Apply swapchainDesc fix from FNA3D, add cdefines.h to CMakeLists 2024-02-06 21:11:22 -06:00
Caleb Cornett 49c64a230f Implemented AcquireCommandBuffer (from old D3D11 work) 2024-02-06 21:11:22 -06:00
Caleb Cornett 13ae5dee54 Implement ClaimWindow, mostly copied from Vulkan and FNA3D D3D11 2024-02-06 21:11:22 -06:00
Caleb Cornett 951f124662 Remove old stuff, flesh out PrepareDriver 2024-02-06 21:11:22 -06:00
Caleb Cornett 547ed52305 Groundwork for D3D11. Yoinked most of this from the prior work, but updated the ABI 2024-02-06 21:11:22 -06:00
cosmonaut c99b4cdfa1 fix incorrect flag bit 2024-01-31 14:47:01 -08:00
cosmonaut 2803e6d94e force ignore device-local property if allocation failed 2024-01-31 14:36:02 -08:00
cosmonaut 30b5f1dd21 user-requested buffers are no longer host-visible 2024-01-31 14:26:40 -08:00
cosmonaut 4ce2d80f80 Intel doesn't like 1 byte buffers 2024-01-19 10:19:23 -08:00
cosmonaut 27e9c741f8 1.15.4 2024-01-15 22:34:31 -08:00
cosmonaut c10ca98ccd Remove some unused variables 2024-01-15 22:25:27 -08:00
cosmonaut d441424b7c Fix ANY_SHADER_READ_SAMPLED_IMAGE sync hazard 2024-01-15 21:41:36 -08:00
cosmonaut 55c77def69 Revert "Fix potential sync hazards (#49)"
This reverts commit 20636ec951.
2024-01-15 21:38:37 -08:00
cosmonaut 2634359b48 Texture size calculation fixes 2024-01-15 16:36:56 -08:00
cosmonaut 56e3eb2af5 1.15.3 2024-01-15 12:47:49 -08:00
cosmonaut 859fc3b9fa fix UBO buffer size 2024-01-13 23:45:07 -08:00