From dbe941c55e5b34760ebab01424163c0a459128c8 Mon Sep 17 00:00:00 2001 From: Lauro Oyen Date: Sat, 23 Nov 2024 23:30:45 +0100 Subject: [PATCH] Fix readme example code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cebe5df..989c239 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ let target_desc = slang::TargetDescBuilder::new() let session_desc = slang::SessionDescBuilder::new() .targets(&[*target_desc]) - .search_paths(&[include_path.as_ptr()]) + .search_paths(&[search_path.as_ptr()]) .options(&session_options); let session = self.global_session.create_session(&session_desc).unwrap(); @@ -40,7 +40,7 @@ let linked_program = program.link().unwrap(); // Entry point to the reflection API. let reflection = linked_program.layout(0).unwrap(); -let shader_bytecode = linked_program.get_entry_point_code(0, 0).unwrap(); +let shader_bytecode = linked_program.entry_point_code(0, 0).unwrap(); ``` ## Installation