---
title: "WgslBody"
description: "What `wgsl` returns: a body ready to sit in `paint:` or `effect:`."
group: "define"
groupTitle: "Defining a shader"
categoryId: "define"
categorySlug: "define"
categoryTitle: "defineShader & wgsl"
kind: "class"
sourceUrl: "https://github.com/shader-effects-inc/shaders/blob/main/packages/core/src/std/wgsl.ts#L76"
---

# WgslBody

What `wgsl` returns: a body ready to sit in `paint:` or `effect:`.

```ts
class WgslBody
```

Import `WgslBody` from `shaders/std`.