This commit is contained in:
2026-06-14 19:09:18 +01:00
parent 14bd1a9271
commit 13fa90a0e9
3958 changed files with 999286 additions and 4 deletions
@@ -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_ */