---
title: shaderSource
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/webglrenderingcontextbase/1632546-shadersource
---

# shaderSource

## Declaration

```data
void shaderSource(
    WebGLShader? shader, 
    DOMString string
);
```
