mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-10 15:03:34 +00:00
29 lines
678 B
C
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
|