---
title: "vec3i(): typeshade/core/ir의 IR 빌더 함수, TypeShade 컴파일러 API"
description: "vec3i, typeshade/core/ir의 IR 빌더 함수입니다. vec3<i32> 생성자이며, WGSL 방식으로 vec3i(x, y, z)라고 씁니다."
url: https://typeshade.dev/ko/api/vec3i/
language: ko
---

# `vec3i()`

함수, 내장 함수 분류

`vec3<i32>` 생성자이며, WGSL 방식으로 `vec3i`(x, y, z)라고 씁니다.

`import { vec3i } from 'typeshade/core/ir'`

이 export는 IR 노드를 반환합니다. `"use typeshade"` 파일에서는 내장 함수 자체를 부릅니다: [`vec3i()`](https://typeshade.dev/ko/reference/functions/vec3i/)

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

## 구문

```ts
const vec3i: (...a: NodeLike[]) => Node<"vec3<i32>">
```

## 매개변수

**`...a` `NodeLike[]`**

## 반환값

`Node<'vec3<i32>'>`

## 설명

일반 숫자 성분은 `i32`로 승격됩니다. 부호 있는 정수 세 개로 이루어지며, 배열 텍스처 안의 텍셀 좌표가 그 예입니다.

## 예제

### 예제

```ts
import { vec3i } from 'typeshade/core/ir'

const cell = vec3i(0, 0, 1)  // Node<'vec3<i32>'>
```

## 관련 가이드

- [값과 변경](https://typeshade.dev/ko/guide/internals/values-and-mutation/)

## 함께 보기

- [`vec3i()`](https://typeshade.dev/ko/reference/functions/vec3i/)

## 소스

[`src/core/ir/node.ts`, 2316행](https://github.com/typeshade/typeshade/blob/af54ddad5/src/core/ir/node.ts#L2316), 커밋 af54ddad5 기준
