File: FrameOp.cpp

package info (click to toggle)
ospray 3.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 10,040 kB
  • sloc: cpp: 80,569; ansic: 951; sh: 805; makefile: 171; python: 69
file content (17 lines) | stat: -rw-r--r-- 557 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2009 Intel Corporation
// SPDX-License-Identifier: Apache-2.0

#include "FrameOp.h"

namespace ospray {

LiveFrameOp::LiveFrameOp(devicert::Device &device, FrameBufferView &fbView)
    : AddStructShared(device), device(device)
{
  // We need `FrameBufferView` to be in `ospray` namespace for external modules
  // to reach it, and we need it to be in `ispc` namespace for ISPC automatic
  // headers generator, copying between those two requires a cast
  *getSh() = *reinterpret_cast<ispc::FrameBufferView *>(&fbView);
}

} // namespace ospray