DirectX11 Geometry Shader with a Structured Buffer

twitterlinkedin

Purpose of the Sample:

This sample demonstrates how to use both a geometry shader and a structured buffer.  In this example, a single point will be uploaded from the CPU to the GPU.  The GPU will expand that single point into a quad composed of two triangles and procedurally assign colors to each new vertex.

CGame.h

CGame.cpp

VertexShader.hlsl

GeometryShader.hlsl

PixelShader.hlsl

Download Sample App

twitterlinkedin
Share It!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.