@@ -734,8 +734,9 @@ impl PipelineCache {
734
734
735
735
// TODO: Expose the rest of this somehow
736
736
let compilation_options = PipelineCompilationOptions {
737
- constants : & default ( ) ,
738
- zero_initialize_workgroup_memory : descriptor. zero_initialize_workgroup_memory ,
737
+ constants : & std:: collections:: HashMap :: new ( ) ,
738
+ zero_initialize_workgroup_memory : false ,
739
+ vertex_pulling_transform : Default :: default ( ) ,
739
740
} ;
740
741
741
742
let descriptor = RawRenderPipelineDescriptor {
@@ -747,15 +748,15 @@ impl PipelineCache {
747
748
primitive : descriptor. primitive ,
748
749
vertex : RawVertexState {
749
750
buffers : & vertex_buffer_layouts,
750
- entry_point : Some ( descriptor. vertex . entry_point . deref ( ) ) ,
751
+ entry_point : descriptor. vertex . entry_point . deref ( ) ,
751
752
module : & vertex_module,
752
753
// TODO: Should this be the same as the fragment compilation options?
753
754
compilation_options : compilation_options. clone ( ) ,
754
755
} ,
755
756
fragment : fragment_data
756
757
. as_ref ( )
757
758
. map ( |( module, entry_point, targets) | RawFragmentState {
758
- entry_point : Some ( entry_point ) ,
759
+ entry_point,
759
760
module,
760
761
targets,
761
762
// TODO: Should this be the same as the vertex compilation options?
@@ -813,12 +814,12 @@ impl PipelineCache {
813
814
label : descriptor. label . as_deref ( ) ,
814
815
layout : layout. as_ref ( ) . map ( |layout| -> & PipelineLayout { layout } ) ,
815
816
module : & compute_module,
816
- entry_point : Some ( & descriptor. entry_point ) ,
817
- // TODO: Expose the rest of this somehow
817
+ entry_point : & descriptor. entry_point ,
818
+ // TODO: Expose this somehow
818
819
compilation_options : PipelineCompilationOptions {
819
- constants : & default ( ) ,
820
- zero_initialize_workgroup_memory : descriptor
821
- . zero_initialize_workgroup_memory ,
820
+ constants : & std :: collections :: HashMap :: new ( ) ,
821
+ zero_initialize_workgroup_memory : false ,
822
+ vertex_pulling_transform : Default :: default ( ) ,
822
823
} ,
823
824
cache : None ,
824
825
} ;
0 commit comments