MCPcopy Create free account
hub / github.com/DavidColson/Polybox / SokolGetSwapchain

Function SokolGetSwapchain

source/graphics_platform_d3d11.cpp:95–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93// ***********************************************************************
94
95sg_swapchain SokolGetSwapchain() {
96 return sg_swapchain{
97 .width = winWidth,
98 .height = winHeight,
99 .sample_count = 1,
100 .color_format = SG_PIXELFORMAT_BGRA8,
101 .depth_format = SG_PIXELFORMAT_DEPTH_STENCIL,
102 .d3d11 = {
103 .render_view = pRenderTargetView,
104 .resolve_view = 0,
105 .depth_stencil_view = pDepthStencilView,
106 }
107 };
108}
109
110void SokolFlush() {
111 _sg.d3d11.ctx->Flush();

Callers 1

GraphicsInitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected