@@ -694,7 +694,7 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createRectangle(co
694
694
hlsl::float32_t2 ( size.x ,-size.y ),
695
695
hlsl::float32_t2 (-size.x ,-size.y )
696
696
};
697
- auto buff = ICPUBuffer::create ({sizeof (positions),IBuffer::EUF_NONE});
697
+ auto buff = ICPUBuffer::create ({{ sizeof (positions),IBuffer::EUF_NONE},( void *)positions });
698
698
shapes::AABB<4 ,float32_t > aabb;
699
699
aabb.minVx = float32_t4 (-size,0 .f ,0 .f );
700
700
aabb.maxVx = float32_t4 ( size,0 .f ,0 .f );
@@ -715,7 +715,7 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createRectangle(co
715
715
hlsl::vector<int8_t ,4 >(0 ,0 ,127 ,0 ),
716
716
hlsl::vector<int8_t ,4 >(0 ,0 ,127 ,0 )
717
717
};
718
- auto buff = ICPUBuffer::create ({sizeof (normals),IBuffer::EUF_NONE});
718
+ auto buff = ICPUBuffer::create ({{ sizeof (normals),IBuffer::EUF_NONE},( void *)normals });
719
719
shapes::AABB<4 ,int8_t > aabb;
720
720
aabb.maxVx = hlsl::vector<int8_t ,4 >(0 ,0 ,127 ,0 );
721
721
aabb.minVx = -aabb.maxVx ;
@@ -736,7 +736,7 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createRectangle(co
736
736
hlsl::vector<uint8_t ,2 >(255 , 0 ),
737
737
hlsl::vector<uint8_t ,2 >( 0 , 0 )
738
738
};
739
- auto buff = ICPUBuffer::create ({sizeof (uvs),IBuffer::EUF_NONE});
739
+ auto buff = ICPUBuffer::create ({{ sizeof (uvs),IBuffer::EUF_NONE},( void *)uvs });
740
740
shapes::AABB<4 ,uint8_t > aabb;
741
741
aabb.minVx = hlsl::vector<uint8_t ,4 >(0 ,0 ,0 ,0 );
742
742
aabb.maxVx = hlsl::vector<uint8_t ,4 >(255 ,255 ,0 ,0 );
@@ -843,7 +843,7 @@ core::smart_refctd_ptr<ICPUPolygonGeometry> CGeometryCreator::createDisk(const f
843
843
{
844
844
const float t = float (i)/float (tesselation);
845
845
const float rad = t * 2 .f * hlsl::numbers::pi<float >;
846
- *(positions++) = float32_t3 (hlsl::sin (rad),hlsl::cos (rad), 0 . f ) ;
846
+ *(positions++) = float32_t2 (hlsl::sin (rad),hlsl::cos (rad))*radius ;
847
847
*(uvs++) = uint16_t2 (t*UnityUV+0 .5f ,0 );
848
848
}
849
849
}
0 commit comments