24 lines
684 B
C++
24 lines
684 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#include "Scene/Prefabs/GridDrawable.hpp"
|
|
#include "VulkanGeometry.hpp"
|
|
#include "Vulkan/VulkanDrawContext.hpp"
|
|
|
|
using namespace OpenVulkano::Scene;
|
|
|
|
namespace OpenVulkano::Vulkan
|
|
{
|
|
void EncodeGridDrawable(Drawable* instance, Vulkan::VulkanDrawContext* drawContext)
|
|
{
|
|
drawContext->commandBuffer.draw(4, 1, 0, 0);
|
|
}
|
|
}
|
|
|
|
namespace
|
|
{
|
|
void* gridDrawableVulkanEncoderReg = DrawEncoder::RegisterVulkanEncodeFunction<GridDrawable>(&OpenVulkano::Vulkan::EncodeGridDrawable);
|
|
} |