42 lines
910 B
C++
42 lines
910 B
C++
/* -*- tab-width: 4; -*- */
|
|
/* vi: set sw=2 ts=4 expandtab: */
|
|
|
|
/*
|
|
* Copyright 2021 Mark Callow.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/**
|
|
* @internal
|
|
* @file
|
|
* @~English
|
|
*
|
|
* @brief Declaration of test sample for loading and displaying the layers of a 2D array texture.
|
|
*
|
|
* @author Mark Callow, github.com/MarkCallow.
|
|
*/
|
|
|
|
#include <vector>
|
|
|
|
#include "InstancedSampleBase.h"
|
|
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
#define VERTEX_BUFFER_BIND_ID 0
|
|
#define ENABLE_VALIDATION false
|
|
|
|
class TextureArray : public InstancedSampleBase
|
|
{
|
|
public:
|
|
TextureArray(uint32_t width, uint32_t height,
|
|
const char* const szArgs,
|
|
const std::string sBasePath);
|
|
|
|
static LoadTestSample*
|
|
create(uint32_t width, uint32_t height,
|
|
const char* const szArgs, const std::string sBasePath);
|
|
|
|
protected:
|
|
using ShaderSource = GL3LoadTestSample::ShaderSource;
|
|
};
|