The invention discloses a Direct3D deep
cutting behavior compatible method based on an atomization
shader, which comprises the following steps: establishing a scene combination
metadata table in a DXVK compiling stage, constructing a
shader template library containing atomization components and variants, and generating an
executable file of the DXVK; after the DXVK is started,
deep processing API calling of the D3D application is intercepted, parameters are extracted to generate an atomization parameter set, and scene combination
metadata are matched or newly added in a scene combination
metadata table to obtain a recommendation strategy and
shader component combination; a conversion mode is adaptively selected according to scene metadata to calculate a Vulkan depth value, and a depth comparison operation is adapted to generate a Vulkan
depth conversion parameter; the DXVK maps the parameters into DRM depth
control parameters irrelevant to hardware and transmits the DRM depth
control parameters to a kernel, the DRM packages the DRM depth
control parameters and converts the DRM depth control parameters into hardware instructions matched with the GPU, the DXVK loads a shader template and binds the parameters, original logic is spliced to generate a Vulkan shader module, a Vulkan command
stream containing the hardware instructions is generated and submitted to the GPU after a pipeline is bound, and finally the GPU executes the Vulkan command
stream to obtain a depth rendering result conforming to D3D native logic.