Skip to content

Instantly share code, notes, and snippets.

@sbrkopac
sbrkopac / gist:5a185961f4aee28cac0aaf130a59c6c0
Created April 15, 2022 23:21
VSG example for DescriptorConfig
#include <iostream>
#include <vsg/all.h>
std::string vert_PushConstants = R"(#version 450
#extension GL_ARB_separate_shader_objects : enable
layout(push_constant) uniform PushConstants {
mat4 projection;
mat4 modelview;
} pc;
@sbrkopac
sbrkopac / main.cpp
Created January 11, 2022 20:06
VSG Visitors and CRTP
#include <vsg/all.h>
using namespace vsg;
class CustomVisitor;
class CustomGroupNode : public Inherit<Group, CustomGroupNode>
{
public:
void accept(Visitor& visitor) override;