@@ -971,7 +971,9 @@ impl window::PresentationSurface<Backend> for Surface {
971971 // We must also delete the image data.
972972 //
973973 // This should not panic as all images must be deleted before
974- let mut present_image = Arc :: try_unwrap ( present. image ) . expect ( "Not all acquired images were deleted before the swapchain was reconfigured." ) ;
974+ let mut present_image = Arc :: try_unwrap ( present. image ) . expect (
975+ "Not all acquired images were deleted before the swapchain was reconfigured." ,
976+ ) ;
975977 present_image. internal . release_resources ( ) ;
976978
977979 let result = present. swapchain . ResizeBuffers (
@@ -2982,6 +2984,74 @@ impl command::CommandBuffer<Backend> for CommandBuffer {
29822984 unimplemented ! ( )
29832985 }
29842986
2987+ unsafe fn build_acceleration_structures < ' a , I > ( & self , _descs : I )
2988+ where
2989+ I : IntoIterator <
2990+ Item = & ' a (
2991+ & ' a hal:: acceleration_structure:: BuildDesc < ' a , Backend > ,
2992+ & ' a [ hal:: acceleration_structure:: BuildRangeDesc ] ,
2993+ ) ,
2994+ > ,
2995+ I :: IntoIter : ExactSizeIterator ,
2996+ {
2997+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
2998+ }
2999+
3000+ unsafe fn build_acceleration_structures_indirect < ' a , I > ( & self , _descs : I )
3001+ where
3002+ I : IntoIterator <
3003+ Item = & ' a (
3004+ & ' a hal:: acceleration_structure:: BuildDesc < ' a , Backend > ,
3005+ & ' a Buffer ,
3006+ buffer:: Offset ,
3007+ buffer:: Stride ,
3008+ & ' a [ u32 ] ,
3009+ ) ,
3010+ > ,
3011+ I :: IntoIter : ExactSizeIterator ,
3012+ {
3013+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
3014+ }
3015+
3016+ unsafe fn copy_acceleration_structure (
3017+ & self ,
3018+ _src : & ( ) ,
3019+ _dst : & ( ) ,
3020+ _mode : hal:: acceleration_structure:: CopyMode ,
3021+ ) {
3022+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
3023+ }
3024+
3025+ unsafe fn copy_acceleration_structure_to_memory (
3026+ & self ,
3027+ _src : & ( ) ,
3028+ _dst_buffer : & Buffer ,
3029+ _dst_offset : buffer:: Offset ,
3030+ _mode : hal:: acceleration_structure:: CopyMode ,
3031+ ) {
3032+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
3033+ }
3034+
3035+ unsafe fn copy_memory_to_acceleration_structure (
3036+ & self ,
3037+ _src_buffer : & Buffer ,
3038+ _src_offset : buffer:: Offset ,
3039+ _dst : & ( ) ,
3040+ _mode : hal:: acceleration_structure:: CopyMode ,
3041+ ) {
3042+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
3043+ }
3044+
3045+ unsafe fn write_acceleration_structures_properties (
3046+ & self ,
3047+ _accel_structs : & [ & ( ) ] ,
3048+ _query_type : query:: Type ,
3049+ _pool : & QueryPool ,
3050+ _first_query : u32 ,
3051+ ) {
3052+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
3053+ }
3054+
29853055 unsafe fn push_graphics_constants (
29863056 & mut self ,
29873057 _layout : & PipelineLayout ,
@@ -4097,6 +4167,12 @@ impl From<pso::DescriptorType> for DescriptorContent {
40974167 ty : Bdt :: Storage { read_only : false } ,
40984168 ..
40994169 } => DescriptorContent :: UAV ,
4170+ Dt :: InputAttachment => {
4171+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
4172+ }
4173+ Dt :: AccelerationStructure => {
4174+ unimplemented ! ( "Feature::ACCELERATION_STRUCTURE not supported on DX11." )
4175+ }
41004176 }
41014177 }
41024178}
@@ -4276,6 +4352,8 @@ impl hal::Backend for Backend {
42764352 type Semaphore = Semaphore ;
42774353 type Event = ( ) ;
42784354 type QueryPool = QueryPool ;
4355+
4356+ type AccelerationStructure = ( ) ;
42794357}
42804358
42814359fn validate_line_width ( width : f32 ) {
0 commit comments