blob: 50c69e95e11995b60ce458cdc81185ddb35f3773 [file] [log] [blame]
#ifndef _VKTSPVASMCOMPUTESHADERCASE_HPP
#define _VKTSPVASMCOMPUTESHADERCASE_HPP
/*-------------------------------------------------------------------------
* Vulkan Conformance Tests
* ------------------------
*
* Copyright (c) 2015 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*//*!
* \file
* \brief Test Case Skeleton Based on Compute Shaders
*//*--------------------------------------------------------------------*/
#include "vkPrograms.hpp"
#include "vktTestCase.hpp"
#include "vktSpvAsmComputeShaderTestUtil.hpp"
namespace vkt
{
namespace SpirVAssembly
{
enum ComputeTestFeatures
{
COMPUTE_TEST_USES_NONE,
COMPUTE_TEST_USES_INT16,
COMPUTE_TEST_USES_INT64,
COMPUTE_TEST_USES_INT16_INT64,
};
class SpvAsmComputeShaderCase : public TestCase
{
public:
SpvAsmComputeShaderCase (tcu::TestContext& testCtx, const char* name, const char* description, const ComputeShaderSpec& spec, const ComputeTestFeatures features = COMPUTE_TEST_USES_NONE);
void initPrograms (vk::SourceCollections& programCollection) const;
TestInstance* createInstance (Context& ctx) const;
private:
ComputeShaderSpec m_shaderSpec;
const ComputeTestFeatures m_features;
};
} // SpirVAssembly
} // vkt
#endif // _VKTSPVASMCOMPUTESHADERCASE_HPP