aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/vk/GrVkUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/vk/GrVkUtil.h')
-rw-r--r--src/gpu/vk/GrVkUtil.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/gpu/vk/GrVkUtil.h b/src/gpu/vk/GrVkUtil.h
deleted file mode 100644
index 4fee31046d..0000000000
--- a/src/gpu/vk/GrVkUtil.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrVkUtil_DEFINED
-#define GrVkUtil_DEFINED
-
-#include "GrColor.h"
-#include "GrTypes.h"
-#include "vk/GrVkInterface.h"
-
-#include "vulkan/vulkan.h"
-
-// makes a Vk call on the interface
-#define GR_VK_CALL(IFACE, X) (IFACE)->fFunctions.f##X;
-// same as GR_VK_CALL but checks for success
-#ifdef SK_DEBUG
-#define GR_VK_CALL_ERRCHECK(IFACE, X) \
- VkResult SK_MACRO_APPEND_LINE(ret) = GR_VK_CALL(IFACE, X); \
- SkASSERT(VK_SUCCESS == SK_MACRO_APPEND_LINE(ret));
-#else
-#define GR_VK_CALL_ERRCHECK(IFACE, X) (void) GR_VK_CALL(IFACE, X);
-#endif
-
-/**
- * Returns the vulkan texture format for the given GrPixelConfig
- */
-bool GrPixelConfigToVkFormat(GrPixelConfig config, VkFormat* format);
-
-bool GrSampleCountToVkSampleCount(uint32_t samples, VkSampleCountFlagBits* vkSamples);
-
-#endif
-