Skip to content

Commit

Permalink
Fix error from previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FlannyH committed Jan 8, 2024
1 parent 7308efe commit ea14a75
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ struct IRRootSignatureOpaque;
struct IRMetalLibBinaryOpaque;
struct IRShaderReflectionOpaque;
struct IRErrorOpaque;
struct IRRaytracingPipelineFlags;

use std::mem::MaybeUninit;

Expand Down Expand Up @@ -35,6 +36,19 @@ struct IRCompilerFn<'lib> {
'lib,
unsafe extern "C" fn(*mut IRCompilerOpaque, *const IRRootSignatureOpaque),
>,
set_ray_tracing_pipeline_arguments: libloading::Symbol<
'lib,
unsafe extern "C" fn(
compiler: *mut IRCompiler,
maxAttributeSizeInBytes: u32,
raytracingPipelineFlags: IRRaytracingPipelineFlags,
chs: u64,
miss: u64,
anyHit: u64,
callableArgs: u64,
maxRecursiveDepth: ::std::os::raw::c_int,
) -> (),
>,

// todo
set_depth_feedback_configuration: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
Expand All @@ -57,7 +71,6 @@ struct IRCompilerFn<'lib> {
set_vertex_viewport_index_id: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
set_int_rt_mask: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
ignore_root_signature: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
set_ray_tracing_pipeline_arguments: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
set_hitgroup_type: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
}

Expand Down Expand Up @@ -249,7 +262,13 @@ struct IRObjectFn<'lib> {
>,
get_type: libloading::Symbol<'lib, unsafe extern "C" fn(*mut IRObjectOpaque) -> IRObjectType>,
serialize: libloading::Symbol<'lib, unsafe extern "C" fn() -> ()>,
gather_raytracing_intrinsics: libloading::Symbol<'_, _>,
gather_raytracing_intrinsics: libloading::Symbol<
'lib,
unsafe extern "C" fn(
input: *mut IRObject,
entryPoint: *const ::std::os::raw::c_char,
) -> u64,
>,
}

pub struct IRObject<'lib> {
Expand Down

0 comments on commit ea14a75

Please sign in to comment.