Files
Pulse/Sources/Backends/Software/SoftDevice.h
2025-11-15 16:33:36 +01:00

29 lines
678 B
C

// Copyright (C) 2025 kbz_8
// This file is part of "Pulse"
// For conditions of distribution and use, see copyright notice in LICENSE
#include <Pulse.h>
#ifdef PULSE_ENABLE_SOFTWARE_BACKEND
#ifndef PULSE_SOFTWARE_DEVICE_H_
#define PULSE_SOFTWARE_DEVICE_H_
#include <cpuinfo.h>
#include <spvm/context.h>
#include "Soft.h"
typedef struct SoftDevice
{
const struct cpuinfo_processor* device;
spvm_context_t spv_context;
} SoftDevice;
PulseDevice SoftCreateDevice(PulseBackend backend, PulseDevice* forbiden_devices, uint32_t forbiden_devices_count);
void SoftDestroyDevice(PulseDevice device);
#endif // PULSE_SOFTWARE_DEVICE_H_
#endif // PULSE_ENABLE_SOFTWARE_BACKEND