# BindBaseFormat

Class · category: Graphics

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/platform/graphics/bind-group-format.js#L21

A base class to describe the format of the resource for [BindGroupFormat](https://api.playcanvas.com/engine/classes/BindGroupFormat.md).

## Constructors

### constructor

```ts
new BindBaseFormat(name: string, visibility: number)
```

Create a new instance.

**Parameters**

- `name` (`string`): The name of the resource.
- `visibility` (`number`): A bit-flag that specifies the shader stages in which the resource
  is visible. Can be:

  - [SHADERSTAGE_VERTEX](https://api.playcanvas.com/engine/variables/SHADERSTAGE_VERTEX.md)
  - [SHADERSTAGE_FRAGMENT](https://api.playcanvas.com/engine/variables/SHADERSTAGE_FRAGMENT.md)
  - [SHADERSTAGE_COMPUTE](https://api.playcanvas.com/engine/variables/SHADERSTAGE_COMPUTE.md)

## Properties

### name

```ts
name: string
```
