---
title: "wgslBackend: TypeShade 셰이더 API의 출력 분류 상수 참조 문서"
description: "wgslBackend, TypeShade API의 출력 분류에 속하는 상수입니다. WGSL 타깃용 Backend입니다. 타입, 리터럴, 내장 함수와 모듈 선언을 device.createShaderModule에 맞게 표기합니다."
url: https://typeshade.dev/ko/api/wgslbackend/
language: ko
---

# `wgslBackend`

상수, 출력 분류

WGSL 타깃용 Backend입니다. 타입, 리터럴, 내장 함수와 모듈 선언을 device.createShaderModule에 맞게 표기합니다.

`import { wgslBackend } from 'typeshade'`

설명은 커밋 af54ddad5의 검토된 컴파일러 문서를 번역한 것입니다. 시그니처와 예제 코드는 원문을 따르며, 필요한 경우 설명에 편집상 수정이 반영됩니다.

## 구문

```ts
const wgslBackend: Backend
```

## 설명

백엔드를 받는 모든 API에 넘깁니다. 예를 들어 [`hostFeaturesFor`](https://typeshade.dev/ko/api/hostfeaturesfor/)나 [`capabilityMatrix`](https://typeshade.dev/ko/api/capabilitymatrix/)가 그런 API입니다. 이 모듈의 WGSL 생성 함수([`emitModule`](https://typeshade.dev/ko/api/emitmodule/), [`emitFragment`](https://typeshade.dev/ko/api/emitfragment/), [`emitFuncs`](https://typeshade.dev/ko/api/emitfuncs/), …)는 이미 이 백엔드에 묶여 있습니다.

## 함께 보기

- [`Backend`](https://typeshade.dev/ko/api/backend/)
- [`hostFeaturesFor`](https://typeshade.dev/ko/api/hostfeaturesfor/)
- [`capabilityMatrix`](https://typeshade.dev/ko/api/capabilitymatrix/)
- [`emitModule`](https://typeshade.dev/ko/api/emitmodule/)
- [`emitFragment`](https://typeshade.dev/ko/api/emitfragment/)
- [`emitFuncs`](https://typeshade.dev/ko/api/emitfuncs/)

## 소스

[`src/core/backends/wgsl.ts`, 52행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/backends/wgsl.ts#L52), 커밋 af54ddad5 기준
