Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2023
1 parent d2eb209 commit 38db6cc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions taichi/rhi/opengl/opengl_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -524,15 +524,15 @@ GLDevice::GLDevice() : stream_(this) {
caps.set(DeviceCapability::spirv_has_int16, true);
caps.set(DeviceCapability::spirv_has_float16, true);
}

if (GLAD_GL_AMD_gpu_shader_int16) {
caps.set(DeviceCapability::spirv_has_int16, true);
}

if (GLAD_GL_AMD_gpu_shader_half_float) {
caps.set(DeviceCapability::spirv_has_float16, true);
}

caps.set(DeviceCapability::spirv_version, 0x10300);
set_caps(std::move(caps));
}
Expand Down Expand Up @@ -827,8 +827,7 @@ void GLCommandList::CmdBindResources::execute() {
check_opengl_error("glBindBufferBase");
} else {
glBindBufferRange(bind.target, bind.index, bind.buffer,
GLintptr(bind.offset),
GLsizeiptr(bind.size));
GLintptr(bind.offset), GLsizeiptr(bind.size));
check_opengl_error("glBindBufferRange");
}
}
Expand Down

0 comments on commit 38db6cc

Please sign in to comment.