You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Style: Set clang-format Standard to Cpp11
For us, it practically only changes the fact that `A<A<int>>` is now used instead of the C++03 compatible `A<A<int> >`. Note: clang-format 10+ changed the `Standard` arguments to fully specified `c++11`, `c++14`, etc. versions, but we can't use `c++17` now if we want to preserve compatibility with clang-format 8 and 9. `Cpp11` is still supported as deprecated alias for `Latest`.
This commit is contained in:
@@ -585,7 +585,7 @@ RID RasterizerStorageRD::texture_2d_create(const Ref<Image> &p_image) {
|
||||
rd_view.swizzle_a = ret_format.swizzle_a;
|
||||
}
|
||||
Vector<uint8_t> data = image->get_data(); //use image data
|
||||
Vector<Vector<uint8_t> > data_slices;
|
||||
Vector<Vector<uint8_t>> data_slices;
|
||||
data_slices.push_back(data);
|
||||
texture.rd_texture = RD::get_singleton()->texture_create(rd_format, rd_view, data_slices);
|
||||
ERR_FAIL_COND_V(texture.rd_texture.is_null(), RID());
|
||||
@@ -608,11 +608,11 @@ RID RasterizerStorageRD::texture_2d_create(const Ref<Image> &p_image) {
|
||||
return texture_owner.make_rid(texture);
|
||||
}
|
||||
|
||||
RID RasterizerStorageRD::texture_2d_layered_create(const Vector<Ref<Image> > &p_layers, VS::TextureLayeredType p_layered_type) {
|
||||
RID RasterizerStorageRD::texture_2d_layered_create(const Vector<Ref<Image>> &p_layers, VS::TextureLayeredType p_layered_type) {
|
||||
|
||||
return RID();
|
||||
}
|
||||
RID RasterizerStorageRD::texture_3d_create(const Vector<Ref<Image> > &p_slices) {
|
||||
RID RasterizerStorageRD::texture_3d_create(const Vector<Ref<Image>> &p_slices) {
|
||||
|
||||
return RID();
|
||||
}
|
||||
@@ -3597,7 +3597,7 @@ void RasterizerStorageRD::gi_probe_allocate(RID p_gi_probe, const Transform &p_t
|
||||
tf.depth = gi_probe->octree_size.z;
|
||||
tf.type = RD::TEXTURE_TYPE_3D;
|
||||
tf.usage_bits = RD::TEXTURE_USAGE_SAMPLING_BIT | RD::TEXTURE_USAGE_CAN_UPDATE_BIT | RD::TEXTURE_USAGE_CAN_COPY_FROM_BIT;
|
||||
Vector<Vector<uint8_t> > s;
|
||||
Vector<Vector<uint8_t>> s;
|
||||
s.push_back(p_distance_field);
|
||||
gi_probe->sdf_texture = RD::get_singleton()->texture_create(tf, RD::TextureView(), s);
|
||||
}
|
||||
@@ -4473,7 +4473,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
vpv.push_back(pv);
|
||||
default_rd_textures[DEFAULT_RD_TEXTURE_WHITE] = RD::get_singleton()->texture_create(tformat, RD::TextureView(), vpv);
|
||||
}
|
||||
@@ -4486,7 +4486,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
vpv.push_back(pv);
|
||||
default_rd_textures[DEFAULT_RD_TEXTURE_BLACK] = RD::get_singleton()->texture_create(tformat, RD::TextureView(), vpv);
|
||||
}
|
||||
@@ -4499,7 +4499,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
vpv.push_back(pv);
|
||||
default_rd_textures[DEFAULT_RD_TEXTURE_NORMAL] = RD::get_singleton()->texture_create(tformat, RD::TextureView(), vpv);
|
||||
}
|
||||
@@ -4512,7 +4512,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
vpv.push_back(pv);
|
||||
default_rd_textures[DEFAULT_RD_TEXTURE_ANISO] = RD::get_singleton()->texture_create(tformat, RD::TextureView(), vpv);
|
||||
}
|
||||
@@ -4547,7 +4547,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
for (int i = 0; i < 6; i++) {
|
||||
vpv.push_back(pv);
|
||||
}
|
||||
@@ -4575,7 +4575,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
for (int i = 0; i < 6; i++) {
|
||||
vpv.push_back(pv);
|
||||
}
|
||||
@@ -4603,7 +4603,7 @@ RasterizerStorageRD::RasterizerStorageRD() {
|
||||
}
|
||||
|
||||
{
|
||||
Vector<Vector<uint8_t> > vpv;
|
||||
Vector<Vector<uint8_t>> vpv;
|
||||
vpv.push_back(pv);
|
||||
default_rd_textures[DEFAULT_RD_TEXTURE_3D_WHITE] = RD::get_singleton()->texture_create(tformat, RD::TextureView(), vpv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user