/*
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

#ifndef PULSAR_NATIVE_INCLUDE_CAMERA_DEVICE_H_
#define PULSAR_NATIVE_INCLUDE_CAMERA_DEVICE_H_

#include "../global.h"
#include "./camera.h"
#include "./commands.h"

namespace pulsar {
IHD CamGradInfo::CamGradInfo() {
  cam_pos = make_float3(0.f, 0.f, 0.f);
  pixel_0_0_center = make_float3(0.f, 0.f, 0.f);
  pixel_dir_x = make_float3(0.f, 0.f, 0.f);
  pixel_dir_y = make_float3(0.f, 0.f, 0.f);
}
#ifdef __HIP_PLATFORM_HCC__
IHD CamGradInfo::CamGradInfo(float val) {
  cam_pos = make_float3(val, val, val);
  pixel_0_0_center = make_float3(val, val, val);
  pixel_dir_x = make_float3(val, val, val);
  pixel_dir_y = make_float3(val, val, val);
}
#endif
} // namespace pulsar

#endif
