VulkanTest: Use generated shader nodes

This commit is contained in:
Jérôme Leclercq 2020-07-22 14:48:35 +02:00
parent 063b7dd602
commit 6d0a59caab
4 changed files with 2 additions and 2 deletions

View File

@ -44,14 +44,14 @@ int main()
return __LINE__;
}
#else
auto fragmentShader = device->InstantiateShaderStage(Nz::ShaderStageType::Fragment, Nz::ShaderLanguage::NazaraBinary, "shader.shader");
auto fragmentShader = device->InstantiateShaderStage(Nz::ShaderStageType::Fragment, Nz::ShaderLanguage::NazaraBinary, "frag.shader");
if (!fragmentShader)
{
std::cout << "Failed to instantiate fragment shader" << std::endl;
return __LINE__;
}
auto vertexShader = device->InstantiateShaderStage(Nz::ShaderStageType::Vertex, Nz::ShaderLanguage::GLSL, "resources/shaders/triangle.vert");
auto vertexShader = device->InstantiateShaderStage(Nz::ShaderStageType::Vertex, Nz::ShaderLanguage::NazaraBinary, "vert.shader");
if (!vertexShader)
{
std::cout << "Failed to instantiate fragment shader" << std::endl;

BIN
examples/bin/frag.shader Normal file

Binary file not shown.

Binary file not shown.

BIN
examples/bin/vert.shader Normal file

Binary file not shown.