MoonWorks-docs/content/Graphics/Resources/GraphicsPipeline/GraphicsPipelineLayoutInfo.md

20 lines
590 B
Markdown
Raw Normal View History

2021-01-27 23:10:05 +00:00
---
2021-01-27 23:23:43 +00:00
title: "Graphics Pipeline Layout Info"
2021-01-27 23:10:05 +00:00
date: 2021-01-27T15:04:37-08:00
2021-01-28 20:52:39 +00:00
weight: 4
2021-01-27 23:10:05 +00:00
---
You finally get a bit of a break for now, because this one is easy.
`GraphicsPipelineLayoutInfo` just tells the graphics pipeline how many samplers you will be using in each shader stage.
2021-01-27 23:10:05 +00:00
```cs
var myPipelineLayoutInfo = new GraphicsPipelineLayoutInfo
{
VertexSamplerBindingCount = 1,
FragmentSamplerBindingCount = 3
};
```
With this example, we are telling our graphics pipeline that our vertex shader will be sampling one texture and our fragment shader will be sampling three textures.