forked from Dynamitos/Seele
removing vulkan references from mac builds
This commit is contained in:
1 parent
9109baad18
commit
54106e6fef
16 files changed
+50
-52
No files matched your search
@@ -2,7 +2,6 @@
|
||||
#include "Asset/AssetRegistry.h"
|
||||
#include "Asset/TextureAsset.h"
|
||||
#include "Graphics/Graphics.h"
|
||||
#include "Graphics/Vulkan/Enums.h"
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
@@ -15,7 +14,7 @@
|
||||
#pragma GCC diagnostic pop
|
||||
#include "ktx.h"
|
||||
#include <ThreadPool.h>
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
@@ -60,9 +59,8 @@ void TextureLoader::import(TextureImportArgs args, PTextureAsset textureAsset) {
|
||||
int totalWidth = 0, totalHeight = 0, n = 0;
|
||||
unsigned char* data = stbi_load(args.filePath.string().c_str(), &totalWidth, &totalHeight, &n, 4);
|
||||
ktxTexture2* kTexture = nullptr;
|
||||
VkFormat format = VK_FORMAT_R8G8B8A8_SRGB;
|
||||
ktxTextureCreateInfo createInfo = {
|
||||
.vkFormat = (uint32)format,
|
||||
.vkFormat = 43, // rgba8srgb
|
||||
.baseDepth = 1,
|
||||
.numLevels = 1,
|
||||
.numLayers = 1,
|
||||
|
||||
Reference in new issue
Block a user