Cleanup: format (with BraceWrapping::AfterControlStatement "MultiLine")
This commit is contained in:
@@ -140,7 +140,8 @@ static PyObject *pygpu_texture__tp_new(PyTypeObject *UNUSED(self), PyObject *arg
|
||||
PyC_ParseStringEnum,
|
||||
&pygpu_textureformat,
|
||||
&BPyGPU_BufferType,
|
||||
&pybuffer_obj)) {
|
||||
&pybuffer_obj))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -301,7 +302,8 @@ static PyObject *pygpu_texture_clear(BPyGPUTexture *self, PyObject *args, PyObje
|
||||
0,
|
||||
};
|
||||
if (!_PyArg_ParseTupleAndKeywordsFast(
|
||||
args, kwds, &_parser, PyC_ParseStringEnum, &pygpu_dataformat, &py_values)) {
|
||||
args, kwds, &_parser, PyC_ParseStringEnum, &pygpu_dataformat, &py_values))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -315,8 +317,8 @@ static PyObject *pygpu_texture_clear(BPyGPUTexture *self, PyObject *args, PyObje
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (shape != 1 &&
|
||||
ELEM(pygpu_dataformat.value_found, GPU_DATA_UINT_24_8, GPU_DATA_10_11_11_REV)) {
|
||||
if (shape != 1 && ELEM(pygpu_dataformat.value_found, GPU_DATA_UINT_24_8, GPU_DATA_10_11_11_REV))
|
||||
{
|
||||
PyErr_SetString(PyExc_AttributeError,
|
||||
"`UINT_24_8` and `10_11_11_REV` only support single values");
|
||||
return NULL;
|
||||
@@ -329,7 +331,8 @@ static PyObject *pygpu_texture_clear(BPyGPUTexture *self, PyObject *args, PyObje
|
||||
py_values,
|
||||
shape,
|
||||
(pygpu_dataformat.value_found == GPU_DATA_FLOAT) ? &PyFloat_Type : &PyLong_Type,
|
||||
"clear") == -1) {
|
||||
"clear") == -1)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user