Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e committed Aug 9, 2023
1 parent 7c1ddf6 commit a31e5a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
12 changes: 9 additions & 3 deletions cocos/rendering/custom/web-pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,22 @@ export class WebSetter {
public offsetFloat (v: number, offset: number): void {
this._copyToBuffer(v, offset, Type.FLOAT);
}
public setBuffer (name: string, buffer: Buffer): void {}
public setBuffer (name: string, buffer: Buffer): void {
// TODO
}
public setTexture (name: string, texture: Texture): void {
if (this._getCurrDescriptorBlock(name) === -1) {
return;
}
const num = this._lg.attributeIndex.get(name)!;
this._data.textures.set(num, texture);
}
public setReadWriteBuffer (name: string, buffer: Buffer): void {}
public setReadWriteTexture (name: string, texture: Texture): void {}
public setReadWriteBuffer (name: string, buffer: Buffer): void {
// TODO
}
public setReadWriteTexture (name: string, texture: Texture): void {
// TODO
}
public setSampler (name: string, sampler: Sampler): void {
if (this._getCurrDescriptorBlock(name) === -1) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ void NativeRenderQueueBuilder::addSceneOfCamera(
}

void NativeRenderQueueBuilder::addScene(const scene::Camera *camera, SceneFlags sceneFlags, const scene::Light *light) {
std::ignore = light;
SceneData data(camera->getScene(), camera, sceneFlags, LightInfo{});

auto sceneID = addVertex2(
Expand Down

0 comments on commit a31e5a9

Please sign in to comment.