mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing windows dll issues
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Buffer
|
||||
class Buffer
|
||||
{
|
||||
public:
|
||||
enum class kind { dynamic, uniform, constant };
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API C_IBO : public Buffer
|
||||
class C_IBO : public Buffer
|
||||
{
|
||||
public:
|
||||
inline void create(uint32_t size, const uint16_t* data, const char* name) { Buffer::create(Buffer::kind::constant, size, VK_BUFFER_USAGE_INDEX_BUFFER_BIT, name, data); }
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API UBO
|
||||
class UBO
|
||||
{
|
||||
public:
|
||||
void create(class Renderer* renderer, uint32_t size, const char* name);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API VBO : public Buffer
|
||||
class VBO : public Buffer
|
||||
{
|
||||
public:
|
||||
inline void create(uint32_t size, const char* name) { Buffer::create(Buffer::kind::dynamic, size, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, name); }
|
||||
@@ -27,7 +27,7 @@ namespace mlx
|
||||
inline void bind(Renderer& renderer) noexcept { vkCmdBindVertexBuffers(renderer.getActiveCmdBuffer().get(), 0, 1, &_buffer, &_offset); }
|
||||
};
|
||||
|
||||
class MLX_API C_VBO : public Buffer
|
||||
class C_VBO : public Buffer
|
||||
{
|
||||
public:
|
||||
inline void create(uint32_t size, const void* data, const char* name) { Buffer::create(Buffer::kind::constant, size, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT, name, data); }
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API CmdManager
|
||||
class CmdManager
|
||||
{
|
||||
public:
|
||||
CmdManager() = default;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API CmdBuffer
|
||||
class CmdBuffer
|
||||
{
|
||||
public:
|
||||
void init(class CmdManager* manager);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API CmdPool
|
||||
class CmdPool
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API GPUallocator
|
||||
class GPUallocator
|
||||
{
|
||||
public:
|
||||
GPUallocator() = default;
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
#include <mutex>
|
||||
|
||||
#ifdef DEBUG
|
||||
#warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances"
|
||||
#ifndef MLX_COMPILER_MSVC
|
||||
#warning "MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances"
|
||||
#else
|
||||
#pragma NOTE("MLX is being compiled in debug mode, this activates Vulkan's validation layers and debug messages which may impact rendering performances")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace mlx
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace mlx
|
||||
|
||||
constexpr const int MAX_FRAMES_IN_FLIGHT = 3;
|
||||
|
||||
class MLX_API Render_Core : public Singleton<Render_Core>
|
||||
class Render_Core : public Singleton<Render_Core>
|
||||
{
|
||||
public:
|
||||
Render_Core() = default;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Device
|
||||
class Device
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Fence
|
||||
class Fence
|
||||
{
|
||||
public:
|
||||
Fence() = default;
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Instance
|
||||
class Instance
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Queues
|
||||
class Queues
|
||||
{
|
||||
public:
|
||||
struct QueueFamilyIndices
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Semaphore
|
||||
class Semaphore
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Surface
|
||||
class Surface
|
||||
{
|
||||
public:
|
||||
void create(class Renderer& renderer);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API ValidationLayers
|
||||
class ValidationLayers
|
||||
{
|
||||
public:
|
||||
void init();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API DescriptorPool
|
||||
class DescriptorPool
|
||||
{
|
||||
public:
|
||||
void init(std::size_t n, VkDescriptorPoolSize* size);
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API DescriptorSet
|
||||
class DescriptorSet
|
||||
{
|
||||
public:
|
||||
void init(class Renderer* renderer, class DescriptorPool* pool, class DescriptorSetLayout* layout);
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API DescriptorSetLayout
|
||||
class DescriptorSetLayout
|
||||
{
|
||||
public:
|
||||
void init(std::vector<std::pair<int, VkDescriptorType>> binds, VkShaderStageFlagBits stage);
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API Texture : public Image
|
||||
class Texture : public Image
|
||||
{
|
||||
public:
|
||||
Texture() = default;
|
||||
@@ -62,9 +62,9 @@ namespace mlx
|
||||
bool _has_been_updated = false;
|
||||
};
|
||||
|
||||
MLX_API Texture stbTextureLoad(std::filesystem::path file, int* w, int* h);
|
||||
Texture stbTextureLoad(std::filesystem::path file, int* w, int* h);
|
||||
|
||||
struct MLX_API TextureRenderData
|
||||
struct TextureRenderData
|
||||
{
|
||||
Texture* texture;
|
||||
std::size_t hash = 0;
|
||||
@@ -79,7 +79,7 @@ namespace mlx
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct MLX_API hash<mlx::TextureRenderData>
|
||||
struct hash<mlx::TextureRenderData>
|
||||
{
|
||||
size_t operator()(const mlx::TextureRenderData& td) const noexcept
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API TextureAtlas : public Image
|
||||
class TextureAtlas : public Image
|
||||
{
|
||||
public:
|
||||
TextureAtlas() = default;
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
MLX_API uint32_t formatSize(VkFormat format);
|
||||
uint32_t formatSize(VkFormat format);
|
||||
|
||||
class MLX_API Image
|
||||
class Image
|
||||
{
|
||||
friend class SwapChain;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API GraphicPipeline
|
||||
class GraphicPipeline
|
||||
{
|
||||
public:
|
||||
void init(class Renderer& renderer);
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API PixelPutPipeline
|
||||
class PixelPutPipeline
|
||||
{
|
||||
public:
|
||||
PixelPutPipeline() = default;
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
struct MLX_API Vertex
|
||||
struct Vertex
|
||||
{
|
||||
glm::vec2 pos;
|
||||
glm::vec4 color;
|
||||
@@ -78,7 +78,7 @@ namespace mlx
|
||||
}
|
||||
};
|
||||
|
||||
class MLX_API Renderer
|
||||
class Renderer
|
||||
{
|
||||
public:
|
||||
Renderer() = default;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API FrameBuffer
|
||||
class FrameBuffer
|
||||
{
|
||||
public:
|
||||
void init(class RenderPass& renderpass, class Image& image);
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API RenderPass
|
||||
class RenderPass
|
||||
{
|
||||
public:
|
||||
void init(VkFormat attachement_format);
|
||||
|
||||
@@ -20,14 +20,14 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API SwapChain
|
||||
class SwapChain
|
||||
{
|
||||
friend class GraphicPipeline;
|
||||
friend class RenderPass;
|
||||
friend class Renderer;
|
||||
|
||||
public:
|
||||
struct MLX_API SwapChainSupportDetails
|
||||
struct SwapChainSupportDetails
|
||||
{
|
||||
VkSurfaceCapabilitiesKHR capabilities;
|
||||
std::vector<VkSurfaceFormatKHR> formats;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace mlx
|
||||
using TextID = uint32_t;
|
||||
constexpr TextID nulltext = 0;
|
||||
|
||||
class MLX_API TextData
|
||||
class TextData
|
||||
{
|
||||
public:
|
||||
TextData() = default;
|
||||
@@ -46,7 +46,7 @@ namespace mlx
|
||||
std::string _text;
|
||||
};
|
||||
|
||||
class MLX_API TextLibrary
|
||||
class TextLibrary
|
||||
{
|
||||
public:
|
||||
TextLibrary() = default;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
struct MLX_API TextDrawData
|
||||
struct TextDrawData
|
||||
{
|
||||
TextID id;
|
||||
int x;
|
||||
@@ -41,7 +41,7 @@ namespace mlx
|
||||
namespace std
|
||||
{
|
||||
template <>
|
||||
struct MLX_API hash<mlx::TextDrawData>
|
||||
struct hash<mlx::TextDrawData>
|
||||
{
|
||||
std::size_t operator()(const mlx::TextDrawData& d) const noexcept
|
||||
{
|
||||
@@ -52,7 +52,7 @@ namespace std
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
class MLX_API TextPutPipeline
|
||||
class TextPutPipeline
|
||||
{
|
||||
public:
|
||||
TextPutPipeline() = default;
|
||||
|
||||
Reference in New Issue
Block a user