Ejemplo n.º 1
0
        public static CompiledShaderModule Compile(VkPipelineShaderStageCreateInfo stageCreateInfo)
        {
            SoftwareShaderModule module = (SoftwareShaderModule)stageCreateInfo.module;
            string entryPointName       = stageCreateInfo.pName;

            CompiledShaderModule ret = new CompiledShaderModule();

            ret.instance   = module.GetNewInstance();
            ret.entryPoint = IntrospectionUtil.GetMethodCallExpression(ret.instance, entryPointName);
            return(ret);
        }
Ejemplo n.º 2
0
 public override VkResult CreateShaderModule(VkShaderModuleCreateInfo createInfo, out VkShaderModule shaderModule)
 {
     shaderModule = new SoftwareShaderModule(this, createInfo);
     return(VkResult.VK_SUCCESS);
 }