Add ktx
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
/* -*- tab-width: 4; -*- */
|
||||
/* vi: set sw=2 ts=4 expandtab: */
|
||||
|
||||
/*
|
||||
* Copyright 2017-2020 Mark Callow.
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef _TEXTURE_MIPMAP_H_
|
||||
#define _TEXTURE_MIPMAP_H_
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @file
|
||||
* @~English
|
||||
*
|
||||
* @brief Declaration of test sample for loading and displaying all the levels of a 2D mipmapped texture.
|
||||
*
|
||||
* @author Mark Callow, github.com/MarkCallow.
|
||||
*/
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "InstancedSampleBase.h"
|
||||
|
||||
#include <ktxvulkan.h>
|
||||
#include <glm/gtc/matrix_transform.hpp>
|
||||
|
||||
class TextureMipmap : public InstancedSampleBase
|
||||
{
|
||||
public:
|
||||
TextureMipmap(VulkanContext& vkctx,
|
||||
uint32_t width, uint32_t height,
|
||||
const char* const szArgs,
|
||||
const std::string sBasePath);
|
||||
|
||||
static VulkanLoadTestSample*
|
||||
create(VulkanContext& vkctx,
|
||||
uint32_t width, uint32_t height,
|
||||
const char* const szArgs, const std::string sBasePath);
|
||||
};
|
||||
|
||||
#endif /* _TEXTURE_MIPMAP_H_ */
|
||||
Reference in New Issue
Block a user