Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- D3D11_SO_DECLARATION_ENTRY pDecl[] =
- {
- // semantic name, semantic index, start component, component count, output slot
- { 0, "SV_POSITION", 0, 0, 4, 0 }, // output all components of position
- { 0, "VELOCITY", 0, 0, 3, 0 }, // output the first 3 of the normal
- { 0, "AGE", 0, 0, 1, 0 }, // output the first 2 texture coordinates
- { 0, "TYPE", 0, 0, 1, 0 }
- };
- hr=pD3dDevice->CreateGeometryShaderWithStreamOutput(bob->GetBufferPointer(), bob->GetBufferSize(),pDecl, sizeof(pDecl)/sizeof(D3D11_SO_DECLARATION_ENTRY),NULL,0,0,NULL,&GeometryShader);
- technique DefaultTechnique
- {
- pass pass1
- {
- SetVertexShader(CompileShader(vs_5_0, VSMain()));
- SetGeometryShader(GSMain1);
- SetPixelShader(NULL);
- SetDepthStencilState(DisableDepth,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement