mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 15:33:34 +00:00
adding backend bootstrapper
This commit is contained in:
36
Scripts/BackendTemplate/TemplateDevice.c
git.filemode.normal_file
36
Scripts/BackendTemplate/TemplateDevice.c
git.filemode.normal_file
@@ -0,0 +1,36 @@
|
||||
// Copyright (C) 2025 kanel
|
||||
// This file is part of "Pulse"
|
||||
// For conditions of distribution and use, see copyright notice in LICENSE
|
||||
|
||||
#include <Pulse.h>
|
||||
#include "../../PulseInternal.h"
|
||||
#include "Template.h"
|
||||
#include "TemplateComputePipeline.h"
|
||||
#include "TemplateCommandList.h"
|
||||
#include "TemplateDevice.h"
|
||||
#include "TemplateFence.h"
|
||||
#include "TemplateBuffer.h"
|
||||
#include "TemplateImage.h"
|
||||
#include "TemplateComputePass.h"
|
||||
|
||||
PulseDevice TemplateNameCreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count)
|
||||
{
|
||||
PULSE_UNUSED(forbiden_devices);
|
||||
PULSE_UNUSED(forbiden_devices_count);
|
||||
|
||||
PULSE_CHECK_HANDLE_RETVAL(backend, PULSE_NULLPTR);
|
||||
|
||||
PulseDevice pulse_device = (PulseDeviceHandler*)calloc(1, sizeof(PulseDeviceHandler));
|
||||
PULSE_CHECK_ALLOCATION_RETVAL(pulse_device, PULSE_NULL_HANDLE);
|
||||
|
||||
pulse_device->backend = backend;
|
||||
PULSE_LOAD_DRIVER_DEVICE(TemplateName);
|
||||
|
||||
if(PULSE_IS_BACKEND_HIGH_LEVEL_DEBUG(backend))
|
||||
PulseLogInfoFmt(backend, "(Template) created device from %s", "yes");
|
||||
return pulse_device;
|
||||
}
|
||||
|
||||
void TemplateNameDestroyDevice(PulseDevice device)
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user