MoonWorks-docs/content/Graphics/Resources/_index.md

23 lines
791 B
Markdown
Raw Permalink Normal View History

2021-01-25 22:59:27 +00:00
---
title: "Resources"
date: 2021-01-25T14:31:59-08:00
weight: 3
---
2021-01-28 22:03:19 +00:00
MoonWorks provides eight different kinds of graphics resources that you use to construct your renderer.
2021-01-25 22:59:27 +00:00
`Buffer` holds generic data, like vertex information for example. The way this data is interpreted is determined by the pipeline.
2022-03-02 08:20:53 +00:00
`Texture` holds image data in a specified format. Textures can also be rendered to.
2021-01-25 22:59:27 +00:00
`Sampler` tells a shader how it should sample texture data.
`ShaderModule` is a SPIR-V shader module.
2021-01-25 22:59:27 +00:00
`GraphicsPipeline` sets up the graphics device to do rendering work.
2021-01-28 22:03:19 +00:00
`ComputePipeline` sets up the graphics device to do computational work using [compute shaders](https://anteru.net/blog/2018/intro-to-compute-shaders/index.html).
2021-01-25 22:59:27 +00:00
This is all pretty abstract. Let's get into some more detail.