Skip to content

Commit

Permalink
dx12: surface skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
recp committed Oct 9, 2023
1 parent e20e96a commit 3850c79
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/backend/dx12/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,6 @@ GPU_HIDE void dx12_initFrame(GPUApiFrame *apiFrame);
GPU_HIDE void dx12_initDescriptor(GPUApiDescriptor *apiDescriptor);
GPU_HIDE void dx12_initSampler(GPUApiSampler *apiSampler);
GPU_HIDE void dx12_initInstance(GPUApiInstance *apiInstance);
GPU_HIDE void dx12_initSurface(GPUApiSurface *apiDevice);

#endif /* dx12_apis_h */
20 changes: 19 additions & 1 deletion src/backend/dx12/impl/surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,22 @@
* limitations under the License.
*/

#include "../common.h"
#include "../common.h"

GPUSurface *
dx12_createSurface(GPUApi * __restrict api,
GPUInstance * __restrict inst,
GPUPhysicalDevice * __restrict phyDevice,
void * __restrict nativeHandle,
GPUSurfaceType type,
float scale) {
GPUSurface *surface;

return NULL;
}

GPU_HIDE
void
dx12_initSurface(GPUApiSurface *apiDevice) {
apiDevice->createSurface = dx12_createSurface;
}
1 change: 1 addition & 0 deletions src/backend/dx12/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ backend_dx12(void) {
dx12_initFrame(&dx12.frame);
dx12_initDescriptor(&dx12.descriptor);
dx12_initInstance(&dx12.instance);
dx12_initSurface(&dx12.surface);

dx12.initialized = true;
}
Expand Down

0 comments on commit 3850c79

Please sign in to comment.