mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Merge branch 'master' of gitlab.kitware.com:m-kim/vtk-m into advdatamodel
This commit is contained in:
commit
699b57191f
5
docs/changelog/lodepng.md
Normal file
5
docs/changelog/lodepng.md
Normal file
@ -0,0 +1,5 @@
|
||||
# LodePNG added as a thirdparty
|
||||
|
||||
The lodepng library was brought is an thirdparty library.
|
||||
This has allowed the VTK-m rendering library to have a robust
|
||||
png decode functionality.
|
@ -987,6 +987,11 @@ public:
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
const vtkm::Id inSize = input.GetNumberOfValues();
|
||||
if (inSize <= 0)
|
||||
{
|
||||
output.Shrink(inSize);
|
||||
return;
|
||||
}
|
||||
CopyPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
|
||||
output.PrepareForOutput(inSize, DeviceAdapterTagCuda()));
|
||||
}
|
||||
@ -999,6 +1004,12 @@ public:
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
vtkm::Id size = stencil.GetNumberOfValues();
|
||||
if (size <= 0)
|
||||
{
|
||||
output.Shrink(size);
|
||||
return;
|
||||
}
|
||||
|
||||
vtkm::Id newSize = CopyIfPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
|
||||
stencil.PrepareForInput(DeviceAdapterTagCuda()),
|
||||
output.PrepareForOutput(size, DeviceAdapterTagCuda()),
|
||||
@ -1015,6 +1026,11 @@ public:
|
||||
VTKM_LOG_SCOPE_FUNCTION(vtkm::cont::LogLevel::Perf);
|
||||
|
||||
vtkm::Id size = stencil.GetNumberOfValues();
|
||||
if (size <= 0)
|
||||
{
|
||||
output.Shrink(size);
|
||||
return;
|
||||
}
|
||||
vtkm::Id newSize = CopyIfPortal(input.PrepareForInput(DeviceAdapterTagCuda()),
|
||||
stencil.PrepareForInput(DeviceAdapterTagCuda()),
|
||||
output.PrepareForOutput(size, DeviceAdapterTagCuda()),
|
||||
|
Loading…
Reference in New Issue
Block a user